• Wang Chen's avatar
    [netdrvr] Drivers should not set IFF_* flag themselves · c16d1185
    Wang Chen authored
    Some hardware set promisc when they are requested to set IFF_ALLMULTI flag.
    It's ok, but if drivers set IFF_PROMISC flag when they set promisc,
    it will broken upper layer handle for promisc and allmulti.
    In addition, drivers can use their own hardware programming to make it.
    So do not allow drivers to set IFF_* flags.
    
    This is a general driver fix, so I didn't split it to pieces and send
    to specific driver maintainers.
    Signed-off-by: default avatarWang Chen <wangchen@cn.fujitsu.com>
    Signed-off-by: default avatarJeff Garzik <jgarzik@redhat.com>
    c16d1185
de620.c 27.2 KB