]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: Cleanup for ROCE capability flag in ae_dev
authorYunsheng Lin <linyunsheng@huawei.com>
Wed, 20 Sep 2017 10:52:50 +0000 (18:52 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 20 Sep 2017 23:15:39 +0000 (16:15 -0700)
commit6dbf8ff23fa71151d91ef26b5353c1dbb4ce7038
tree50bf0edc7f1aa63d49ff0fa1dc0be9841deea78d
parent6a7e445aff6e907344f8262d76f1154ad8796189
net: hns3: Cleanup for ROCE capability flag in ae_dev

This patch add the ROCE supported flag in the driver_data
field of pci_device_id, delete roce_pci_tbl and change
HNAE_DEV_SUPPORT_ROCE_B to HNAE3_DEV_SUPPORT_ROCE_B.
This cleanup is done in order to support adding capability
in pci_device_id and to fix initialization failure when
cmd is not supported.

Signed-off-by: Yunsheng Lin <linyunsheng@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hnae3.h
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
drivers/net/ethernet/hisilicon/hns3/hns3pf/hns3_enet.c