[PATCH net-next] hinic: add fw version query

2019-07-05 Thread Xue Chaojing
This patch adds firmware version query in ethtool -i. Signed-off-by: Xue Chaojing --- .../net/ethernet/huawei/hinic/hinic_ethtool.c | 8 + .../net/ethernet/huawei/hinic/hinic_hw_dev.h | 2 ++ .../net/ethernet/huawei/hinic/hinic_port.c| 30 +++ .../net/ethernet/huawei

[PATCH net-next] hinic: add fw version query

2019-07-05 Thread Xue Chaojing
This patch adds firmware version query in ethtool -i. Signed-off-by: Xue Chaojing --- .../net/ethernet/huawei/hinic/hinic_ethtool.c | 8 + .../net/ethernet/huawei/hinic/hinic_hw_dev.h | 2 ++ .../net/ethernet/huawei/hinic/hinic_port.c| 30 +++ .../net/ethernet/huawei

[PATCH net-next] hinic: remove standard netdev stats

2019-07-02 Thread Xue Chaojing
This patch removes standard netdev stats in ethtool -S. Suggested-by: Jakub Kicinski Signed-off-by: Xue Chaojing --- .../net/ethernet/huawei/hinic/hinic_ethtool.c | 47 +-- 1 file changed, 1 insertion(+), 46 deletions(-) diff --git a/drivers/net/ethernet/huawei/hinic

[PATCH net-next] hinic: add vlan offload support

2019-06-29 Thread Xue Chaojing
This patch adds vlan offload support for the HINIC driver. Signed-off-by: Xue Chaojing --- .../net/ethernet/huawei/hinic/hinic_hw_dev.h | 2 ++ .../net/ethernet/huawei/hinic/hinic_hw_wqe.h | 15 ++ .../net/ethernet/huawei/hinic/hinic_main.c| 9 -- .../net/ethernet/huawei

[PATCH net-next v2] hinic: implement the statistical interface of ethtool

2019-06-24 Thread Xue Chaojing
This patch implement the statistical interface of ethtool, user can use ethtool -S to show hinic statistics. Signed-off-by: Xue Chaojing --- .../net/ethernet/huawei/hinic/hinic_ethtool.c | 341 ++ .../net/ethernet/huawei/hinic/hinic_hw_dev.h | 8 + .../net/ethernet/huawei

[PATCH net-next] hinic: implement the statistical interface of ethtool

2019-06-20 Thread Xue Chaojing
This patch implement the statistical interface of ethtool, user can use ethtool -S to show hinic statistics. Signed-off-by: Xue Chaojing --- .../net/ethernet/huawei/hinic/hinic_ethtool.c | 341 ++ .../net/ethernet/huawei/hinic/hinic_hw_dev.h | 8 + .../net/ethernet/huawei

[PATCH net-next v5 3/3] hinic: add support for rss parameters with ethtool

2019-06-18 Thread Xue Chaojing
This patch adds support rss parameters with ethtool, user can change hash key, hash indirection table, hash function by ethtool -X, and show rss parameters by ethtool -x. Signed-off-by: Xue Chaojing --- drivers/net/ethernet/huawei/hinic/hinic_dev.h | 2 + .../net/ethernet/huawei/hinic

[PATCH net-next v5 1/3] hinic: add rss support

2019-06-18 Thread Xue Chaojing
This patch adds rss support for the HINIC driver. Signed-off-by: Xue Chaojing --- drivers/net/ethernet/huawei/hinic/hinic_dev.h | 26 ++ .../net/ethernet/huawei/hinic/hinic_hw_dev.c | 10 +- .../net/ethernet/huawei/hinic/hinic_hw_dev.h | 26 ++ .../net/ethernet/huawei/hinic/hinic_hw_wqe.h

[PATCH net-next v5 0/3] hinic: add rss support and rss parameters configuration

2019-06-18 Thread Xue Chaojing
This series add rss support for HINIC driver and implement the ethtool interface related to rss parameter configuration. user can use ethtool configure rss parameters or show rss parameters. Xue Chaojing (3): hinic: add rss support hinic: move ethtool code into hinic_ethtool hinic: add

[PATCH net-next v5 2/3] hinic: move ethtool code into hinic_ethtool

2019-06-18 Thread Xue Chaojing
This patch moves ethtool code from hinic_main.c to hinic_ethtool.c Signed-off-by: Xue Chaojing --- drivers/net/ethernet/huawei/hinic/Makefile| 2 +- .../net/ethernet/huawei/hinic/hinic_ethtool.c | 163 ++ .../net/ethernet/huawei/hinic/hinic_main.c| 134

[PATCH net-next v4 2/3] hinic: move ethtool code into hinic_ethtool

2019-06-17 Thread Xue Chaojing
This patch moves ethtool code from hinic_main.c to hinic_ethtool.c Signed-off-by: Xue Chaojing --- drivers/net/ethernet/huawei/hinic/Makefile| 2 +- .../net/ethernet/huawei/hinic/hinic_ethtool.c | 163 ++ .../net/ethernet/huawei/hinic/hinic_main.c| 134

[PATCH net-next v4 1/3] hinic: add rss support

2019-06-17 Thread Xue Chaojing
This patch adds rss support for the HINIC driver. Signed-off-by: Xue Chaojing --- drivers/net/ethernet/huawei/hinic/hinic_dev.h | 26 ++ .../net/ethernet/huawei/hinic/hinic_hw_dev.c | 10 +- .../net/ethernet/huawei/hinic/hinic_hw_dev.h | 26 ++ .../net/ethernet/huawei/hinic/hinic_hw_wqe.h

[PATCH net-next v4 0/3] hinic: add rss support and rss parameters configuration

2019-06-17 Thread Xue Chaojing
This series add rss support for HINIC driver and implement the ethtool interface related to rss parameter configuration. user can use ethtool configure rss parameters or show rss parameters. Xue Chaojing (3): hinic: add rss support hinic: move ethtool code into hinic_ethtool hinic: add

[PATCH net-next v4 3/3] hinic: add support for rss parameters with ethtool

2019-06-17 Thread Xue Chaojing
This patch adds support rss parameters with ethtool, user can change hash key, hash indirection table, hash function by ethtool -X, and show rss parameters by ethtool -x. Signed-off-by: Xue Chaojing --- drivers/net/ethernet/huawei/hinic/hinic_dev.h | 2 + .../net/ethernet/huawei/hinic

[PATCH net-next v3 0/2] hinic: add rss support and rss parameters configuration

2019-06-13 Thread Xue Chaojing
This series add rss support for HINIC driver and implement the ethtool interface related to rss parameter configuration. user can use ethtool configure rss parameters or show rss parameters. Xue Chaojing (2): hinic: add rss support hinic: add support for rss parameters with ethtool drivers

[PATCH net-next v3 2/2] hinic: add support for rss parameters with ethtool

2019-06-13 Thread Xue Chaojing
This patch adds support rss parameters with ethtool, user can change hash key, hash indirection table, hash function by ethtool -X, and show rss parameters by ethtool -x. Signed-off-by: Xue Chaojing --- drivers/net/ethernet/huawei/hinic/Makefile| 2 +- drivers/net/ethernet/huawei/hinic

[PATCH net-next v3 1/2] hinic: add rss support

2019-06-13 Thread Xue Chaojing
This patch adds rss support for the HINIC driver. Signed-off-by: Xue Chaojing --- drivers/net/ethernet/huawei/hinic/hinic_dev.h | 26 ++ .../net/ethernet/huawei/hinic/hinic_hw_dev.c | 10 +- .../net/ethernet/huawei/hinic/hinic_hw_dev.h | 26 ++ .../net/ethernet/huawei/hinic/hinic_hw_wqe.h

[PATCH net-next v2 0/2] hinic: add rss support and rss paramters configuration

2019-06-11 Thread Xue Chaojing
This series add rss support for HINIC driver and implemente the ethtool interface related to rss parameter configuration. user can use ethtool configure rss parameters or show rss parameters. Xue Chaojing (2): hinic: add rss support hinic: add support for rss parameters with ethtool drivers

[PATCH net-next v2 2/2] hinic: add support for rss parameters with ethtool

2019-06-11 Thread Xue Chaojing
This patch adds support rss parameters with ethtool, user can change hash key, hash indirection table, hash function by ethtool -X, and show rss parameters by ethtool -x. Signed-off-by: Xue Chaojing --- drivers/net/ethernet/huawei/hinic/Makefile| 2 +- drivers/net/ethernet/huawei/hinic

[PATCH net-next v2 1/2] hinic: add rss support

2019-06-11 Thread Xue Chaojing
This patch adds rss support for the HINIC driver. Signed-off-by: Xue Chaojing --- drivers/net/ethernet/huawei/hinic/hinic_dev.h | 26 ++ .../net/ethernet/huawei/hinic/hinic_hw_dev.c | 10 +- .../net/ethernet/huawei/hinic/hinic_hw_dev.h | 26 ++ .../net/ethernet/huawei/hinic/hinic_hw_wqe.h

[PATCH net-next 1/2] hinic: add rss support

2019-06-10 Thread Xue Chaojing
This patch adds rss support for the HINIC driver. Signed-off-by: Xue Chaojing --- drivers/net/ethernet/huawei/hinic/hinic_dev.h | 26 ++ .../net/ethernet/huawei/hinic/hinic_hw_dev.c | 10 +- .../net/ethernet/huawei/hinic/hinic_hw_dev.h | 26 ++ .../net/ethernet/huawei/hinic/hinic_hw_wqe.h

[PATCH net-next 2/2] hinic: add support for rss parameters with ethtool

2019-06-10 Thread Xue Chaojing
This patch adds add support rss parameters with ethtool, user can change hash key, hash table, hash function by ethtool -X, and show rss parameters by ethtool -x. Signed-off-by: Xue Chaojing --- drivers/net/ethernet/huawei/hinic/Makefile| 2 +- drivers/net/ethernet/huawei/hinic

[PATCH net-next v4] hinic: add LRO support

2019-06-04 Thread Xue Chaojing
This patch adds LRO support for the HiNIC driver. Reported-by: kbuild test robot Reviewed-by: Jesse Brandeburg Signed-off-by: Xue Chaojing --- .../net/ethernet/huawei/hinic/hinic_hw_dev.c | 2 + .../net/ethernet/huawei/hinic/hinic_hw_dev.h | 8 +- .../net/ethernet/huawei/hinic

[PATCH net-next v3] hinic: add LRO support

2019-06-03 Thread Xue Chaojing
This patch adds LRO support for the HiNIC driver. Signed-off-by: Xue Chaojing --- .../net/ethernet/huawei/hinic/hinic_hw_dev.c | 2 + .../net/ethernet/huawei/hinic/hinic_hw_dev.h | 8 +- .../net/ethernet/huawei/hinic/hinic_hw_io.c | 58 + .../ethernet/huawei/hinic

[net-next v2] hinic: add LRO support

2019-05-31 Thread Xue Chaojing
This patch adds LRO support for the HiNIC driver. Signed-off-by: Xue Chaojing --- drivers/net/ethernet/huawei/hinic/hinic_dev.h | 14 ++- .../net/ethernet/huawei/hinic/hinic_hw_dev.c | 2 + .../net/ethernet/huawei/hinic/hinic_hw_dev.h | 8 +- .../net/ethernet/huawei/hinic/hinic_hw_io.c

[net-next]hinic: add LRO support

2019-05-30 Thread Xue Chaojing
This patch adds LRO support for the HiNIC driver. Signed-off-by: Xue Chaojing --- drivers/net/ethernet/huawei/hinic/hinic_dev.h | 15 ++- .../net/ethernet/huawei/hinic/hinic_hw_dev.c | 2 + .../net/ethernet/huawei/hinic/hinic_hw_dev.h | 8 +- .../net/ethernet/huawei/hinic/hinic_hw_io.c

[PATCH net-next] hinic: fix a bug in set rx mode

2019-05-28 Thread Xue Chaojing
in set_rx_mode, __dev_mc_sync and netdev_for_each_mc_addr will repeatedly set the multicast mac address. so we delete this loop. Signed-off-by: Xue Chaojing --- drivers/net/ethernet/huawei/hinic/hinic_main.c | 4 1 file changed, 4 deletions(-) diff --git a/drivers/net/ethernet/huawei

[PATCH net-next] hinic: Add pci device ids

2019-01-20 Thread Xue Chaojing
id 0x200 is modified for HINIC 100GE dual port card. Signed-off-by: Xue Chaojing --- drivers/net/ethernet/huawei/hinic/hinic_main.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/net/ethernet/huawei/hinic/hinic_main.c b/drivers/net/ethernet/huawei/hinic

[PATCH 1/1] net-next/hinic: replace disable_irq_nosync/enable_irq

2019-01-15 Thread Xue Chaojing
In order to avoid frequent system interrupts when sending and receiving packets. we replace disable_irq_nosync/enable_irq with hinic_set_msix_state(), hinic_set_msix_state is used to access memory mapped hinic devices. Signed-off-by: Xue Chaojing --- .../net/ethernet/huawei/hinic/hinic_hw_dev.c

[PATCH 1/1] net-next/hinic: replace disable_irq_nosync/enable_irq

2019-01-03 Thread Xue Chaojing
In order to avoid frequent system interrupts when sending and receiving packets. we replace disable_irq_nosync/enable_irq with hinic_set_msix_state(), hinic_set_msix_state is used to access memory mapped hinic devices. Signed-off-by: Xue Chaojing --- .../net/ethernet/huawei/hinic/hinic_hw_dev.c

[PATCH 1/1] net-next/hinic:add shutdown callback

2019-01-01 Thread Xue Chaojing
If there is no shutdown callback, our board will report pcie UNF errors after restarting. This patch add shutdown callback for hinic. Signed-off-by: Xue Chaojing --- drivers/net/ethernet/huawei/hinic/hinic_main.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/net/ethernet

[PATCH 1/1] net-next/hinic:add shutdown callback

2018-12-28 Thread Xue Chaojing
This patch add shutdown callback for hinic. Signed-off-by: Xue Chaojing --- drivers/net/ethernet/huawei/hinic/hinic_main.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/net/ethernet/huawei/hinic/hinic_main.c b/drivers/net/ethernet/huawei/hinic/hinic_main.c index

[PATCH 1/1] net-next/hinic:optmize rx refill buffer mechanism

2018-12-16 Thread Xue Chaojing
In rx_alloc_pkts(), there is no need to schedule a different tasklet for refill and it will cause some extra overhead. this patch remove it. Suggested-by: Neil Horman Signed-off-by: Xue Chaojing --- drivers/net/ethernet/huawei/hinic/hinic_rx.c | 23 +--- drivers/net/ethernet

[PATCH 1/1] net-next/hinic:optmize rx refill buffer mechanism

2018-12-12 Thread Xue Chaojing
There is no need to schedule a different tasklet for refill, This patch remove it. Suggested-by: Neil Horman Signed-off-by: Xue Chaojing --- drivers/net/ethernet/huawei/hinic/hinic_rx.c | 23 +--- drivers/net/ethernet/huawei/hinic/hinic_rx.h | 2 -- 2 files changed, 5

[PATCH 1/1] net-next/hinic:optmize rx refill buffer mechanism

2018-12-09 Thread Xue Chaojing
There is no need to schedule a different tasklet for refill, This patch remove it. Suggested-by: Neil Horman Signed-off-by: Xue Chaojing --- drivers/net/ethernet/huawei/hinic/hinic_rx.c | 23 +--- drivers/net/ethernet/huawei/hinic/hinic_rx.h | 2 -- 2 files changed, 5

[PATCH 3/4] net-next/hinic:fix a bug in set mac address

2018-11-20 Thread Xue Chaojing
In add_mac_addr(), if the MAC address is a muliticast address, it will not be set, which causes the network card fail to receive the multicast packet. This patch fixes this bug. Signed-off-by: Xue Chaojing --- drivers/net/ethernet/huawei/hinic/hinic_main.c | 7 --- 1 file changed, 4

[PATCH 4/4] net-next/hinic: fix a bug in rx data flow

2018-11-20 Thread Xue Chaojing
In rx_alloc_pkts(), there is a loop call of tasklet, which causes 100% cpu utilization, even no packets are being received. This patch fixes this bug. Signed-off-by: Xue Chaojing --- drivers/net/ethernet/huawei/hinic/hinic_rx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 3/4] net-next/hinic:fix a bug in set mac address

2018-11-20 Thread Xue Chaojing
In add_mac_addr(), if the MAC address is a muliticast address, it will not be set, which causes the network card fail to receive the multicast packet. This patch fixes this bug. Signed-off-by: Xue Chaojing --- drivers/net/ethernet/huawei/hinic/hinic_main.c | 7 --- 1 file changed, 4

[PATCH 4/4] net-next/hinic: fix a bug in rx data flow

2018-11-20 Thread Xue Chaojing
In rx_alloc_pkts(), there is a loop call of tasklet, which causes 100% cpu utilization, even no packets are being received. This patch fixes this bug. Signed-off-by: Xue Chaojing --- drivers/net/ethernet/huawei/hinic/hinic_rx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 1/4] net-next/hinic:replace multiply and division operators

2018-11-20 Thread Xue Chaojing
To improve performance, this patch uses bit operations to replace multiply and division operators. Signed-off-by: Xue Chaojing --- .../net/ethernet/huawei/hinic/hinic_hw_wq.c | 55 --- .../net/ethernet/huawei/hinic/hinic_hw_wq.h | 3 +- 2 files changed, 38 insertions(+), 20

[PATCH 1/4] net-next/hinic:replace multiply and division operators

2018-11-20 Thread Xue Chaojing
To improve performance, this patch uses bit operations to replace multiply and division operators. Signed-off-by: Xue Chaojing --- .../net/ethernet/huawei/hinic/hinic_hw_wq.c | 55 --- .../net/ethernet/huawei/hinic/hinic_hw_wq.h | 3 +- 2 files changed, 38 insertions(+), 20

[PATCH 2/4] net-next/hinic:add rx checksum offload for HiNIC

2018-11-19 Thread Xue Chaojing
In order to improve performance, this patch adds rx checksum offload for the HiNIC driver. Performance test(Iperf) shows more than 80% improvement in TCP streams. Signed-off-by: Xue Chaojing --- .../net/ethernet/huawei/hinic/hinic_hw_dev.h | 2 ++ .../net/ethernet/huawei/hinic/hinic_hw_wqe.h

[PATCH 2/4] net-next/hinic:add rx checksum offload for HiNIC

2018-11-19 Thread Xue Chaojing
In order to improve performance, this patch adds rx checksum offload for the HiNIC driver. Performance test(Iperf) shows more than 80% improvement in TCP streams. Signed-off-by: Xue Chaojing --- .../net/ethernet/huawei/hinic/hinic_hw_dev.h | 2 ++ .../net/ethernet/huawei/hinic/hinic_hw_wqe.h

[PATCH 4/4] net-next/hinic: fix a bug in rx data flow

2018-11-19 Thread Xue Chaojing
In rx_alloc_pkts(), there is a loop call of tasklet, which causes 100% cpu utilization, even no packets are being received. This patch fixes this bug. Signed-off-by: Xue Chaojing --- drivers/net/ethernet/huawei/hinic/hinic_rx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 4/4] net-next/hinic: fix a bug in rx data flow

2018-11-19 Thread Xue Chaojing
In rx_alloc_pkts(), there is a loop call of tasklet, which causes 100% cpu utilization, even no packets are being received. This patch fixes this bug. Signed-off-by: Xue Chaojing --- drivers/net/ethernet/huawei/hinic/hinic_rx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 3/4] net-next/hinic:fix a bug in set mac address

2018-11-19 Thread Xue Chaojing
In add_mac_addr(), if the MAC address is a muliticast address, it will not be set, which causes the network card fail to receive the multicast packet. This patch fixes this bug. Signed-off-by: Xue Chaojing --- drivers/net/ethernet/huawei/hinic/hinic_main.c | 6 +++--- 1 file changed, 3

[PATCH 1/4] net-next/hinic:replace multiply and division operators

2018-11-19 Thread Xue Chaojing
To improve performance, this patch uses bit operations to replace multiply and division operators. Signed-off-by: Xue Chaojing --- .../net/ethernet/huawei/hinic/hinic_hw_wq.c | 43 +-- .../net/ethernet/huawei/hinic/hinic_hw_wq.h | 3 +- 2 files changed, 32 insertions(+), 14

[PATCH 3/4] net-next/hinic:fix a bug in set mac address

2018-11-19 Thread Xue Chaojing
In add_mac_addr(), if the MAC address is a muliticast address, it will not be set, which causes the network card fail to receive the multicast packet. This patch fixes this bug. Signed-off-by: Xue Chaojing --- drivers/net/ethernet/huawei/hinic/hinic_main.c | 6 +++--- 1 file changed, 3

[PATCH 1/4] net-next/hinic:replace multiply and division operators

2018-11-19 Thread Xue Chaojing
To improve performance, this patch uses bit operations to replace multiply and division operators. Signed-off-by: Xue Chaojing --- .../net/ethernet/huawei/hinic/hinic_hw_wq.c | 43 +-- .../net/ethernet/huawei/hinic/hinic_hw_wq.h | 3 +- 2 files changed, 32 insertions(+), 14

[PATCH 1/1] net-next/hinic: add checksum offload and TSO support

2018-10-15 Thread Xue Chaojing
From: Zhao Chen This patch adds checksum offload and TSO support for the HiNIC driver. Perfomance test (Iperf) shows more than 100% improvement in TCP streams. Signed-off-by: Zhao Chen Signed-off-by: Xue Chaojing --- .../net/ethernet/huawei/hinic/hinic_hw_dev.h | 2 + .../net/ethernet

[PATCH 1/1] net-next/hinic: add checksum offload and TSO support

2018-10-15 Thread Xue Chaojing
From: Zhao Chen This patch adds checksum offload and TSO support for the HiNIC driver. Perfomance test (Iperf) shows more than 100% improvement in TCP streams. Signed-off-by: Zhao Chen Signed-off-by: Xue Chaojing --- .../net/ethernet/huawei/hinic/hinic_hw_dev.h | 2 + .../net/ethernet