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)
commitdc9b5ce03124cf86bac3bd714369a8387d6e2012
tree190c259e8e3685fe45908f3b0c2ed34a7d7783b1
parent53c622db99df0789ade7082d028bf4f3b6064c95
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