This patch add support for ethtool's ETHTOOL_GRXFH in hns3_get_rxnfc().
Signed-off-by: Lipeng <lipeng...@huawei.com>
---
drivers/net/ethernet/hisilicon/hns3/hnae3.h| 2 +
.../ethernet/hisilicon/hns3/hns3pf/hclge_main.c| 64 ++
.../ethernet/hisilicon/hns3/
This patch supports the ethtool's set_rxnfc().
Signed-off-by: Lipeng <lipeng...@huawei.com>
---
drivers/net/ethernet/hisilicon/hns3/hnae3.h| 2 +
.../net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c | 9 ++
.../net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h | 1 +
.../ethernet/his
This patch fix the ring count for ETHTOOL_GRXRINGS. Ring count
not TC size should be return for command "ethtool -n ethx".
Signed-off-by: Lipeng <lipeng...@huawei.com>
---
drivers/net/ethernet/hisilicon/hns3/hns3pf/hns3_ethtool.c | 2 +-
1 file changed, 1 insertion(+), 1 deletio
This patch supports the ethtool's set_ringparam().
Signed-off-by: Lipeng <lipeng...@huawei.com>
---
.../net/ethernet/hisilicon/hns3/hns3pf/hns3_enet.c | 4 +-
.../net/ethernet/hisilicon/hns3/hns3pf/hns3_enet.h | 4 ++
.../ethernet/hisilicon/hns3/hns3pf/hns3_ethtool.c
1, Patch [1/5,2/5] add support for ethtool ops set_ringparam
(ethtool -G) and fix related bug.
2, Patch [3/5,4/5, 5/5] add support for ethtool ops
set_rxnfc/get_rxnfc (-n/-N) and fix related bug.
Lipeng (5):
net: hns3: fixes the ring index in hns3_fini_ring
net: hns3: add support
This patch fixes the ring index in hns3_fini_ring.
Signed-off-by: Lipeng <lipeng...@huawei.com>
---
drivers/net/ethernet/hisilicon/hns3/hns3pf/hns3_enet.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hns3_enet.c
b/drive
When reuse command description, the in/out bit and W/R bit of the
command flag should be both updated. The old code did not update
in/out bit, this patch fix it.
Signed-off-by: Mingguang Qu <quminggu...@huawei.com>
Signed-off-by: Lipeng <lipeng...@huawei.com>
---
drivers/net/ethern
Current implemmentation of buffer allocation in SSU do not meet
the requirement to do the buffer reallocation. This patch fixs
that in order to support buffer reallocation between Mac and
PFC pause.
Signed-off-by: Yunsheng Lin <linyunsh...@huawei.com>
Signed-off-by: Lipeng <lipeng...@h
This patch-set introduces some bug fixes and code improvements.
These have been identified during internal review or testing of
the driver by internal Hisilicon teams.
Lipeng (8):
net: hns3: add check when initialize
net: hns3: update ring and vector map command
net: hns3: set default mac
Config the self_define vlan_type as TPID(0x8100) for vlan identification.
When normal port initialize vlan configure, set default vlan id as 0.
Signed-off-by: Mingguang Qu <quminggu...@huawei.com>
Signed-off-by: Lipeng <lipeng...@huawei.com>
---
drivers/net/ethernet/hisilicon
<quminggu...@huawei.com>
Signed-off-by: Lipeng <lipeng...@huawei.com>
---
.../net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h | 9 +
.../ethernet/hisilicon/hns3/hns3pf/hclge_main.c| 43 +-
2 files changed, 51 insertions(+), 1 deletion(-)
diff --git a/drivers/
Add INT_GL and VF id to vector configure when bind ring with vector.
INT_GL means Interrupt Gap Limiting.Vector id starts from 0 in each
VF, so the bind command must specify VF id.
Signed-off-by: Lipeng <lipeng...@huawei.com>
Signed-off-by: Mingguang Qu <quminggu...@huawei.com>
---
When there is no vlan id in the packets, hardware will treat the vlan id
as 0 and look for the mac_vlan table. This patch set the default vlan id
of PF as 0.
Signed-off-by: Mingguang Qu <quminggu...@huawei.com>
Signed-off-by: Lipeng <lipeng...@huawei.com>
---
drivers/net/ethernet/hi
This patch set the VLAN Ethetnet type(0x8100) to HW. With this
configure, HW can identify vlan packets.
Signed-off-by: Mingguang Qu <quminggu...@huawei.com>
Signed-off-by: Lipeng <lipeng...@huawei.com>
---
.../net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h | 13 +
.../ethernet/hi
if device do not support DCB.
Signed-off-by: Lipeng <lipeng...@huawei.com>
---
drivers/net/ethernet/hisilicon/hns3/hnae3.h| 1 +
.../ethernet/hisilicon/hns3/hns3pf/hclge_main.c| 41 --
2 files changed, 31 insertions(+), 11 deletions(-)
diff --git a/drivers/net/et
When alloce new buffer to HW, should unmap the old buffer first.
This old code map the old buffer but not unmap the old buffer,
this patch fixes it.
Fixes: 76ad4f0 (net: hns3: Add support of HNS3 Ethernet Driver for hip08 SoC)
Signed-off-by: Lipeng <lipeng...@huawei.com>
---
drive
)
Signed-off-by: Lipeng <lipeng...@huawei.com>
---
drivers/net/ethernet/hisilicon/hns3/hns3pf/hns3_enet.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hns3_enet.c
b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hns3_enet.c
This patch gets vf count by standard function pci_sriov_get_totalvfs,
instead of info from NIC HW.
Signed-off-by: Lipeng <lipeng...@huawei.com>
---
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/net/et
-off-by: Lipeng <lipeng...@huawei.com>
---
drivers/net/ethernet/hisilicon/hns3/hns3pf/hns3_enet.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hns3_enet.c
b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hns3_enet.c
index 14de0f7..06af3c8
l decrease when clean a buffer.
If there is no valid BD in TX ring, return 0 for hns3_clean_tx_ring
will cause napi poll again and never complete the napi poll. This
patch fixes the bug.
Fixes: 76ad4f0 (net: hns3: Add support of HNS3 Ethernet Driver for hip08 SoC)
Signed-off-by: Lipeng <lipeng.
The interface hns3_ring_get_cfg only update TX ring queue_index,
but do not update RX ring queue_index. This patch fixes it.
Fixes: 76ad4f0 (net: hns3: Add support of HNS3 Ethernet Driver for hip08 SoC)
Signed-off-by: Lipeng <lipeng...@huawei.com>
---
drivers/net/ethernet/hisilicon/hns3/
s3_get_rxnfc.
Signed-off-by: Lipeng <lipeng...@huawei.com>
---
drivers/net/ethernet/hisilicon/hns3/hns3pf/hns3_ethtool.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hns3_ethtool.c
b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hn
This patchset introduces various HNS3 bug fixes, optimizations and code
improvements.
Lipeng (7):
net: hns3: fix a bug when alloc new buffer
net: hns3: fix the bug when map buffer fail
net: hns3: fix the ops check in hns3_get_rxnfc
net: hns3: get vf count by pci_sriov_get_totalvfs
net
gned-off-by: Lipeng <lipeng...@huawei.com>
---
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
ind
mmod hns3.ko after rmmod hns-roce-hw-v2.ko and hns-roce.ko.
This patch fixes the issue.
Fixes: 46a3df9 (net: hns3: Add HNS3 Acceleration Engine & Compatibility Layer
Support)
Signed-off-by: Lipeng <lipeng...@huawei.com>
---
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c |
.
[ 135.270983] hns3 :7d:00.0: add mac addr failed for cmd_send, ret =-5.
This patch fixes the bug.
Fixes: 46a3df9 (net: hns3: Add HNS3 Acceleration Engine & Compatibility Layer
Support)
Signed-off-by: Lipeng <lipeng...@huawei.com>
---
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_
This patchset fixes some bugs reported by Hisilicon test team.
Lipeng (4):
net: hns3: fix the bug of hns3_set_txbd_baseinfo
net: hns3: add nic_client check when initialize roce base information
net: hns3: fix a bug in hclge_uninit_client_instance
net: hns3: fix the bug when reuse command
conmunicate with its own
PF need forwarding table. This patch sets SC bits of TX BD 0 and use
forwarding table.
Fixes: 76ad4f0 (net: hns3: Add support of HNS3 Ethernet Driver for hip08 SoC)
Signed-off-by: Lipeng <lipeng...@huawei.com>
---
drivers/net/ethernet/hisilicon/hns3/hns3pf/hns3_enet.c | 2
com>
Signed-off-by: Lipeng <lipeng...@huawei.com>
---
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c
b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c
i
Liang <liangfuy...@huawei.com>
Signed-off-by: Lipeng <lipeng...@huawei.com>
---
.../ethernet/hisilicon/hns3/hns3pf/hclge_main.c| 36 ++
.../ethernet/hisilicon/hns3/hns3pf/hclge_main.h| 1 +
.../ethernet/hisilicon/hns3/hns3pf/hclge_mdio.c| 4 +++
3 files
This patch adds support for querying advertised pause frame by using
ethtool command(ethtool ethx).
Fixes: 496d03e960ae (net: hns3: Add Ethtool support to HNS3 driver)
Signed-off-by: Fuyun Liang <liangfuy...@huawei.com>
Signed-off-by: Lipeng <lipeng...@huawei.com>
---
drivers/
This patch add the support to query tqps number for PF driver
by using ehtool -l command.
Signed-off-by: qumingguang <quminggu...@huawei.com>
Signed-off-by: Lipeng <lipeng...@huawei.com>
---
drivers/net/ethernet/hisilicon/hns3/hnae3.h | 2 ++
drivers/net/ethernet/hi
state in
hclge_get_autoneg().
Fixes: 46a3df9f9718 (net: hns3: Add HNS3 Acceleration Engine & Compatibility
Layer Support)
Signed-off-by: Fuyun Liang <liangfuy...@huawei.com>
Signed-off-by: Lipeng <lipeng...@huawei.com>
---
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 4
1 file
From: qumingguang <quminggu...@huawei.com>
Add configuration for rss_size_max in hdev but not hardcode it.
Signed-off-by: qumingguang <quminggu...@huawei.com>
Signed-off-by: Lipeng <lipeng...@huawei.com>
---
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h | 2 ++
dr
TC-based sched mode supports SRIOV enabled and SRIOV disabled. This
patch change the TM sched mode to TC-based mode in initialization
process.
Fixes: cc9bb43 (net: hns3: Add tc-based TM support for sriov enabled port)
Signed-off-by: Lipeng <lipeng...@huawei.com>
---
drivers/net/et
This patch adds set_pauseparam support for ethtool cmd.
Signed-off-by: Fuyun Liang <liangfuy...@huawei.com>
Signed-off-by: Lipeng <lipeng...@huawei.com>
---
drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c | 13
.../ethernet/hisilicon/hns3/hns3pf/hclge_ma
This patch add the support to change tqps number for PF driver
by using ehtool -L command.
Signed-off-by: qumingguang <quminggu...@huawei.com>
Signed-off-by: Lipeng <lipeng...@huawei.com>
---
drivers/net/ethernet/hisilicon/hns3/hnae3.h| 3 +
drivers/net/ethernet/hi
This patch adds vlan offload config commands, initializes
the rules of tx/rx vlan tag handle for hw.
Signed-off-by: Shenjian <shenjia...@huawei.com>
Signed-off-by: Lipeng <lipeng...@huawei.com>
---
.../net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h | 45 ++
.../ethernet/hi
This patch sets vlan masked, in order to avoid the received
packets being filtered.
Signed-off-by: Shenjian <shenjia...@huawei.com>
Signed-off-by: Lipeng <lipeng...@huawei.com>
---
.../net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h | 10 ++
.../ethernet/hisilicon/hns3/hns3pf/
hns3: cleanup mac auto-negotiation state query
net: hns3: fix for getting auto-negotiation state in hclge_get_autoneg
net: hns3: add Asym Pause support to phy default features
Lipeng (13):
net: hns3: add support to query tqps number
net: hns3: add support to modify tqps number
net:
This patch fix a memory leak problems in change tqps process,
the function hns3_uninit_all_ring and hns3_init_all_ring
may be called many times.
Signed-off-by: qumingguang <quminggu...@huawei.com>
Signed-off-by: Lipeng <lipeng...@huawei.com>
---
drivers/net/ethernet/hisilicon/hns3
This patch adds offload command related to "ethtool -K".
Signed-off-by: Shenjian <shenjia...@huawei.com>
Signed-off-by: Lipeng <lipeng...@huawei.com>
---
drivers/net/ethernet/hisilicon/hns3/hnae3.h | 3 +++
drivers/net/ethernet/hisilicon/hns3/hn
This patch modify the return data of get_rxnfc, it will return
the current handle's rss_size but not the total tqp number.
because the tc_size has been change to the log2 of roundup
power of two of rss_size.
Signed-off-by: qumingguang <quminggu...@huawei.com>
Signed-off-by: Lipeng &
se can not be advertised when the phy
negotiates flow control.
Fixes: c4fb2cdf575d (net: hns3: fix a bug for phy supported feature
initialization)
Signed-off-by: Fuyun Liang <liangfuy...@huawei.com>
Signed-off-by: Lipeng <lipeng...@huawei.com>
---
drivers/net/ethernet/hisilicon/hns3/h
rdware.
This patch removes the mac auto-negotiation state query.
Signed-off-by: Fuyun Liang <liangfuy...@huawei.com>
Signed-off-by: Lipeng <lipeng...@huawei.com>
---
.../ethernet/hisilicon/hns3/hns3pf/hclge_main.c| 24 --
1 file changed, 24 deletions(-)
diff --git a/dr
This patch deals with the vlan tag information between
sk_buff and rx/tx bd.
Signed-off-by: Shenjian <shenjia...@huawei.com>
Signed-off-by: Lipeng <lipeng...@huawei.com>
---
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c | 83 +++--
1 file changed, 78 inse
com>
Signed-off-by: Lipeng <lipeng...@huawei.com>
---
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c
b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c
i
This patch adds offload command related to "ethtool -K".
Signed-off-by: Shenjian <shenjia...@huawei.com>
Signed-off-by: Lipeng <lipeng...@huawei.com>
---
drivers/net/ethernet/hisilicon/hns3/hnae3.h | 3 +++
drivers/net/ethernet/hisilicon/hns3/hn
This patch deals with the vlan tag information between
sk_buff and rx/tx bd.
Signed-off-by: Shenjian <shenjia...@huawei.com>
Signed-off-by: Lipeng <lipeng...@huawei.com>
---
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c | 83 +++--
1 file changed, 78 inse
This patch adds support for querying advertised pause frame by using
ethtool command(ethtool ethx).
Fixes: 496d03e960ae ("net: hns3: Add Ethtool support to HNS3 driver")
Signed-off-by: Fuyun Liang <liangfuy...@huawei.com>
Signed-off-by: Lipeng <lipeng...@huawei.com>
---
This patch modifies the return data of get_rxnfc, it will return
the current handle's rss_size but not the total tqp number.
because the tc_size has been change to the log2 of roundup
power of two of rss_size.
Signed-off-by: qumingguang <quminggu...@huawei.com>
Signed-off-by: Lipeng &
From: qumingguang <quminggu...@huawei.com>
Add configuration for rss_size_max in hdev but not hardcode it.
Signed-off-by: qumingguang <quminggu...@huawei.com>
Signed-off-by: Lipeng <lipeng...@huawei.com>
---
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h | 2 ++
dr
; V2:
1, fix the comments from Sergei Shtylyov.
---
Fuyun Liang (3):
net: hns3: cleanup mac auto-negotiation state query
net: hns3: fix for getting auto-negotiation state in hclge_get_autoneg
net: hns3: add Asym Pause support to phy default features
Lipeng (13):
net: hns3: add support t
Liang <liangfuy...@huawei.com>
Signed-off-by: Lipeng <lipeng...@huawei.com>
---
.../ethernet/hisilicon/hns3/hns3pf/hclge_main.c| 36 ++
.../ethernet/hisilicon/hns3/hns3pf/hclge_main.h| 1 +
.../ethernet/hisilicon/hns3/hns3pf/hclge_mdio.c| 4 +++
3 files
This patch adds vlan offload config commands, initializes
the rules of tx/rx vlan tag handle for hw.
Signed-off-by: Shenjian <shenjia...@huawei.com>
Signed-off-by: Lipeng <lipeng...@huawei.com>
---
.../net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h | 45 ++
.../ethernet/hi
state in
hclge_get_autoneg().
Fixes: 46a3df9f9718 ("net: hns3: Add HNS3 Acceleration Engine & Compatibility
Layer Support")
Signed-off-by: Fuyun Liang <liangfuy...@huawei.com>
Signed-off-by: Lipeng <lipeng...@huawei.com>
---
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 4 ++
This patch adds set_pauseparam support for ethtool cmd.
Signed-off-by: Fuyun Liang <liangfuy...@huawei.com>
Signed-off-by: Lipeng <lipeng...@huawei.com>
---
drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c | 13
.../ethernet/hisilicon/hns3/hns3pf/hclge_ma
This patch add the support to change tqps number for PF driver
by using ehtool -L command.
Signed-off-by: qumingguang <quminggu...@huawei.com>
Signed-off-by: Lipeng <lipeng...@huawei.com>
---
drivers/net/ethernet/hisilicon/hns3/hnae3.h| 3 +
drivers/net/ethernet/hi
This patch fixes a memory leak problems in change tqps process,
the function hns3_uninit_all_ring and hns3_init_all_ring
may be called many times.
Signed-off-by: qumingguang <quminggu...@huawei.com>
Signed-off-by: Lipeng <lipeng...@huawei.com>
---
drivers/net/ethernet/hisilicon/hns3
This patch adds the support to query tqps number for PF driver
by using ehtool -l command.
Signed-off-by: qumingguang <quminggu...@huawei.com>
Signed-off-by: Lipeng <lipeng...@huawei.com>
---
drivers/net/ethernet/hisilicon/hns3/hnae3.h | 2 ++
drivers/net/ethernet/hi
rdware.
This patch removes the mac auto-negotiation state query.
Signed-off-by: Fuyun Liang <liangfuy...@huawei.com>
Signed-off-by: Lipeng <lipeng...@huawei.com>
---
.../ethernet/hisilicon/hns3/hns3pf/hclge_main.c| 24 --
1 file changed, 24 deletions(-)
diff --git a/dr
TC-based sched mode supports SRIOV enabled and SRIOV disabled. This
patch change the TM sched mode to TC-based mode in initialization
process.
Fixes: cc9bb43ab394 ("net: hns3: Add tc-based TM support for sriov enabled
port")
Signed-off-by: Lipeng <lipeng...@huawei.com>
---
driv
t Asym Pause can not be advertised when the phy
negotiates flow control.
Fixes: c4fb2cdf575d ("net: hns3: fix a bug for phy supported feature
initialization")
Signed-off-by: Fuyun Liang <liangfuy...@huawei.com>
Signed-off-by: Lipeng <lipeng...@huawei.com>
---
driv
This patch sets vlan masked, in order to avoid the received
packets being filtered.
Signed-off-by: Shenjian <shenjia...@huawei.com>
Signed-off-by: Lipeng <lipeng...@huawei.com>
---
.../net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h | 10 ++
.../ethernet/hisilicon/hns3/hns3pf/
This patch adds vlan offload config commands, initializes
the rules of tx/rx vlan tag handle for hw.
Signed-off-by: Shenjian <shenjia...@huawei.com>
Signed-off-by: Lipeng <lipeng...@huawei.com>
---
.../net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h | 45 ++
.../ethernet/hi
state in
hclge_get_autoneg().
Fixes: 46a3df9f9718 ("net: hns3: Add HNS3 Acceleration Engine & Compatibility
Layer Support")
Signed-off-by: Fuyun Liang <liangfuy...@huawei.com>
Signed-off-by: Lipeng <lipeng...@huawei.com>
---
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 4 ++
This patch adds offload command related to "ethtool -K".
Signed-off-by: Shenjian <shenjia...@huawei.com>
Signed-off-by: Lipeng <lipeng...@huawei.com>
---
drivers/net/ethernet/hisilicon/hns3/hnae3.h | 3 +++
drivers/net/ethernet/hisilicon/hns3/hn
This patch adds set_pauseparam support for ethtool cmd.
Signed-off-by: Fuyun Liang <liangfuy...@huawei.com>
Signed-off-by: Lipeng <lipeng...@huawei.com>
---
drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c | 13
.../ethernet/hisilicon/hns3/hns3pf/hclge_ma
This patch adds the support to change tqps number for PF driver
by using ehtool -L command.
Signed-off-by: qumingguang <quminggu...@huawei.com>
Signed-off-by: Lipeng <lipeng...@huawei.com>
---
drivers/net/ethernet/hisilicon/hns3/hnae3.h| 3 +
drivers/net/ethernet/hi
From: qumingguang <quminggu...@huawei.com>
Add configuration for rss_size_max in hdev but not hardcode it.
Signed-off-by: qumingguang <quminggu...@huawei.com>
Signed-off-by: Lipeng <lipeng...@huawei.com>
---
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h | 2 ++
dr
com>
Signed-off-by: Lipeng <lipeng...@huawei.com>
---
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c
b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c
i
TC-based sched mode supports SRIOV enabled and SRIOV disabled. This
patch change the TM sched mode to TC-based mode in initialization
process.
Fixes: cc9bb43ab394 ("net: hns3: Add tc-based TM support for sriov enabled
port")
Signed-off-by: Lipeng <lipeng...@huawei.com>
---
driv
rdware.
This patch removes the mac auto-negotiation state query.
Signed-off-by: Fuyun Liang <liangfuy...@huawei.com>
Signed-off-by: Lipeng <lipeng...@huawei.com>
---
.../ethernet/hisilicon/hns3/hns3pf/hclge_main.c| 24 --
1 file changed, 24 deletions(-)
diff --git a/dr
t Asym Pause can not be advertised when the phy
negotiates flow control.
Fixes: c4fb2cdf575d ("net: hns3: fix a bug for phy supported feature
initialization")
Signed-off-by: Fuyun Liang <liangfuy...@huawei.com>
Signed-off-by: Lipeng <lipeng...@huawei.com>
---
driv
This patch adds support for querying advertised pause frame by using
ethtool command(ethtool ethx).
Fixes: 496d03e960ae ("net: hns3: Add Ethtool support to HNS3 driver")
Signed-off-by: Fuyun Liang <liangfuy...@huawei.com>
Signed-off-by: Lipeng <lipeng...@huawei.com>
---
Liang <liangfuy...@huawei.com>
Signed-off-by: Lipeng <lipeng...@huawei.com>
---
.../ethernet/hisilicon/hns3/hns3pf/hclge_main.c| 36 ++
.../ethernet/hisilicon/hns3/hns3pf/hclge_main.h| 1 +
.../ethernet/hisilicon/hns3/hns3pf/hclge_mdio.c| 4 +++
3 files
This patch deals with the vlan tag information between
sk_buff and rx/tx bd.
Signed-off-by: Shenjian <shenjia...@huawei.com>
Signed-off-by: Lipeng <lipeng...@huawei.com>
---
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c | 83 +++--
1 file changed, 78 inse
This patch sets vlan masked, in order to avoid the received
packets being filtered.
Signed-off-by: Shenjian <shenjia...@huawei.com>
Signed-off-by: Lipeng <lipeng...@huawei.com>
---
.../net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h | 10 ++
.../ethernet/hisilicon/hns3/hns3pf/
This patch modifies the return data of get_rxnfc, it will return
the current handle's rss_size but not the total tqp number.
because the tc_size has been change to the log2 of roundup
power of two of rss_size.
Signed-off-by: qumingguang <quminggu...@huawei.com>
Signed-off-by: Lipeng &
to-negotiation state in hclge_get_autoneg
net: hns3: add Asym Pause support to phy default features
Lipeng (13):
net: hns3: add support to query tqps number
net: hns3: add support to modify tqps number
net: hns3: change the returned tqp number by ethtool -x
net: hns3: Free the ring_data s
This patch adds the support to query tqps number for PF driver
by using ehtool -l command.
Signed-off-by: qumingguang <quminggu...@huawei.com>
Signed-off-by: Lipeng <lipeng...@huawei.com>
---
drivers/net/ethernet/hisilicon/hns3/hnae3.h | 2 ++
drivers/net/ethernet/hi
This patch fixes a memory leak problems in change tqps process,
the function hns3_uninit_all_ring and hns3_init_all_ring
may be called many times.
Signed-off-by: qumingguang <quminggu...@huawei.com>
Signed-off-by: Lipeng <lipeng...@huawei.com>
---
drivers/net/ethernet/hisilicon/hns3
t. IMP reset is caused by watchdog timer expiration,
the same range with core reset. PF reset will reset whole physical
function.
Signed-off-by: qumingguang <quminggu...@huawei.com>
Signed-off-by: Lipeng <lipeng...@huawei.com>
---
drivers/net/ethernet/hisilicon/hns3/hnae3.h
This patch implement the interface of reset notification in hns3_enet
it will do resetting business which include shutdown nic device,
free and initialize client side resource.
Signed-off-by: qumingguang <quminggu...@huawei.com>
Signed-off-by: Lipeng <lipeng...@huawei.com>
---
.../
rocess and initialization process,
This patch moved out the descriptor allocate and memory maping from
interface cmdq_init.
Signed-off-by: qumingguang <quminggu...@huawei.com>
Signed-off-by: Lipeng <lipeng...@huawei.com>
---
.../net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c | 39 +
. This patch set all of the statistic counters to zero
after reset.
Signed-off-by: qumingguang <quminggu...@huawei.com>
Signed-off-by: Lipeng <lipeng...@huawei.com>
---
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 7 +++
1 file changed, 7 insertions(+)
diff --gi
From: qumingguang <quminggu...@huawei.com>
This patch refactor the mapping of tqp to vport, making the maping function
can be used both in the reset process and initialization process.
Signed-off-by: qumingguang <quminggu...@huawei.com>
Signed-off-by: Lipeng <lipen
rocess and initialization process.
Signed-off-by: qumingguang <quminggu...@huawei.com>
Signed-off-by: Lipeng <lipeng...@huawei.com>
---
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 14 +++---
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/drivers/net/
expiration, the same range with core reset. PF reset will reset
whole physical function.
This patchset adds reset support for hns3 driver and fix some related bugs.
Lipeng (2):
net: hns3: Add timeout process in hns3_enet
net: hns3: Add reset interface implementation in client
qumingguang (7):
net
uawei.com>
Signed-off-by: Lipeng <lipeng...@huawei.com>
---
drivers/net/ethernet/hisilicon/hns3/hns3pf/hns3_enet.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hns3_enet.c
b/drivers/net/ethernet/hisilicon/hns3/hns3pf
From: qumingguang <quminggu...@huawei.com>
This patch adds initialization and deinitialization for misc interrupt.
This interrupt will be used to handle reset message(IRQ).
Signed-off-by: qumingguang <quminggu...@huawei.com>
Signed-off-by: Lipeng <lipeng...@huawei.com>
---
This patch add timeout handler in hns3_enet.c to handle
TX side timeout event, when TX timeout event occur, it will triger
NIC driver into reset process.
Signed-off-by: qumingguang <quminggu...@huawei.com>
Signed-off-by: Lipeng <lipeng...@huawei.com>
---
.../net/ethernet/hisilicon
From: Fuyun Liang <liangfuy...@huawei.com>
This patch adds nway_reset support for ethtool cmd.
Signed-off-by: Fuyun Liang <liangfuy...@huawei.com>
Signed-off-by: Lipeng <lipeng...@huawei.com>
---
.../net/ethernet/hisilicon/hns3/hns3pf/hns3_ethtool.c | 18 ++
Signed-off-by: Fuyun Liang <liangfuy...@huawei.com>
Signed-off-by: Lipeng <lipeng...@huawei.com>
---
drivers/net/ethernet/hisilicon/hns3/hns3pf/hns3_ethtool.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hns3_ethtool.c
b/drivers/net/
driver)
Signed-off-by: Fuyun Liang <liangfuy...@huawei.com>
Signed-off-by: Lipeng <lipeng...@huawei.com>
---
.../ethernet/hisilicon/hns3/hns3pf/hns3_ethtool.c | 30 +++---
1 file changed, 15 insertions(+), 15 deletions(-)
diff --git a/drivers/net/ethernet/his
This patch-set adds support for set_link_ksettings && for nway_resets
ethtool command and fixes some related ethtool bugs.
1, patch[4/6] adds support for ethtool_ops.set_link_ksettings.
2, patch[5/6] adds support ethtool_ops.for nway_reset.
3, patch[1/6,2/6,3/6,6/6] fix some bugs for getting port
tch fixes it.
Fixes: 256727d (net: hns3: Add MDIO support to HNS3 Ethernet driver for hip08
SoC)
Signed-off-by: Fuyun Liang <liangfuy...@huawei.com>
Signed-off-by: Lipeng <lipeng...@huawei.com>
---
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mdio.c | 10 ++
1 file changed, 10 inse
Fixes: 496d03e (net: hns3: Add Ethtool support to HNS3 driver)
Signed-off-by: Fuyun Liang <liangfuy...@huawei.com>
Signed-off-by: Lipeng <lipeng...@huawei.com>
---
drivers/net/ethernet/hisilicon/hns3/hns3pf/hns3_ethtool.c | 9 ++---
1 file changed, 2 insertions(+), 7 deleti
From: Fuyun Liang <liangfuy...@huawei.com>
This patch adds set_link_ksettings support for ethtool cmd.
Signed-off-by: Fuyun Liang <liangfuy...@huawei.com>
Signed-off-by: Lipeng <lipeng...@huawei.com>
---
drivers/net/ethernet/hisilicon/hns3/hns3pf/hns3_ethtool.c | 11 +
rdware.
This patch removes mac auto-negotiation state query in
hclge_update_speed_duplex().
Fixes: 46a3df9f9718 (net: hns3: Add HNS3 Acceleration Engine & Compatibility
Layer Support)
Signed-off-by: Fuyun Liang <liangfuy...@huawei.com>
Signed-off-by: Lipeng <lipeng...@huawei.com>
---
1 - 100 of 302 matches
Mail list logo