]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: refine function hns3_set_default_feature()
authorJian Shen <shenjian15@huawei.com>
Mon, 30 Aug 2021 13:51:06 +0000 (21:51 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 31 Aug 2021 11:36:42 +0000 (12:36 +0100)
commitaf45e95b7d9e4a9b84880cbc7f142e98480e4905
tree190c259e8e3685fe45908f3b0c2ed34a7d7783b1
parentadf41e23bbabd8cca8313f01b97cdf899507635a
net: hns3: refine function hns3_set_default_feature()

Currently, the driver sets default feature for netdev->features,
netdev->hw_features, netdev->vlan_features and
netdev->hw_enc_features separately. It's fussy, because most
of the feature bits are same. So refine it by copy value from
netdev->features.

Signed-off-by: Jian Shen <shenjian15@huawei.com>
Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c