> From: Brelinski, TonyX [mailto:tonyx.brelin...@intel.com]
> Sent: Tuesday, April 20, 2021 9:26 PM
>
> > From: Intel-wired-lan On Behalf Of
> > Salil Mehta
> > Sent: Tuesday, April 13, 2021 3:45 PM
> > To: da...@davemloft.net; k...@kernel.org
>
Fixes for the miscellaneous problems found during the review of the code.
Salil Mehta (2):
net: hns3: Remove the left over redundant check & assignment
net: hns3: Remove un-necessary 'else-if' in the hclge_reset_event()
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
This removes the left over check and assignment which is no longer used
anywhere in the function and should have been removed as part of the
below mentioned patch.
Fixes: 012fcb52f67c ("net: hns3: activate reset timer when calling reset_event")
Signed-off-by: Salil Mehta
---
d
Code to defer the reset(which caps the frequency of the reset) schedules the
timer and returns. Hence, following 'else-if' looks un-necessary.
Fixes: 9de0b86f6444 ("net: hns3: Prevent to request reset frequently")
Signed-off-by: Salil Mehta
---
drivers/net/ethernet/h
Hi Leon,
Thanks for the review.
> From: Leon Romanovsky [mailto:l...@kernel.org]
> Sent: Sunday, April 4, 2021 7:26 AM
> To: Salil Mehta
> Cc: da...@davemloft.net; k...@kernel.org; netdev@vger.kernel.org;
> linux-ker...@vger.kernel.org; Linuxarm ;
> linux...@openeuler.org
>
> From: Leon Romanovsky [mailto:l...@kernel.org]
> Sent: Monday, April 5, 2021 1:43 PM
> To: Salil Mehta
> Cc: da...@davemloft.net; k...@kernel.org; netdev@vger.kernel.org;
> linux-ker...@vger.kernel.org; Linuxarm ;
> linux...@openeuler.org
> Subject: Re: [PATCH net 1/2]
Fixes for the miscellaneous problems found during the review of the code.
Change Summary:
Patch 1/2, Change V1->V2:
[1] Fixed comments from Leon Romanovsky
Link: https://lkml.org/lkml/2021/4/4/14
Patch 2/2, Change V1->V2:
None
Salil Mehta (2):
net: hns3: Remove the lef
This removes the left over check and assignment which is no longer used
anywhere in the function and should have been removed as part of the
below mentioned patch.
Fixes: 012fcb52f67c ("net: hns3: activate reset timer when calling reset_event")
Signed-off-by: Salil Mehta
--
V1->
Code to defer the reset(which caps the frequency of the reset) schedules the
timer and returns. Hence, following 'else-if' looks un-necessary.
Fixes: 9de0b86f6444 ("net: hns3: Prevent to request reset frequently")
Signed-off-by: Salil Mehta
---
drivers/net/ethernet/h
Limiting the scope of the variable vector_ring_chain to the block where it
is used.
Fixes: 424eb834a9be ("net: hns3: Unified HNS3 {VF|PF} Ethernet Driver for hip08
SoC")
Signed-off-by: Salil Mehta
---
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c | 3 ++-
1 file changed, 2 insert
anks
Salil
> From: patchwork-bot+netdev...@kernel.org
> [mailto:patchwork-bot+netdev...@kernel.org]
> Sent: Monday, April 5, 2021 11:10 PM
> To: Salil Mehta
> Cc: da...@davemloft.net; k...@kernel.org; netdev@vger.kernel.org;
> linux-ker...@vger.kernel.org; Linuxarm ;
> linux...
Some trivial spelling mistakes which caught my eye during the
review of the code.
Signed-off-by: Salil Mehta
---
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 2 +-
drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c | 4 ++--
2 files changed, 3 insertions(+), 3 deletions
ement ethtool ops for channels")
Signed-off-by: Salil Mehta
---
drivers/net/ethernet/intel/ice/ice_lib.c | 14 --
1 file changed, 8 insertions(+), 6 deletions(-)
diff --git a/drivers/net/ethernet/intel/ice/ice_lib.c
b/drivers/net/ethernet/intel/ice/ice_lib.c
index d13c7fc8fb0a..16
Hi Anthony,
Thanks for reviewing!
> From: Nguyen, Anthony L [mailto:anthony.l.ngu...@intel.com]
> Sent: Monday, April 12, 2021 11:41 PM
> To: da...@davemloft.net; k...@kernel.org; Salil Mehta
> Cc: netdev@vger.kernel.org; linux-ker...@vger.kernel.org; Brandeburg, Jesse
> ; linux..
t;ice: Implement ethtool ops for channels")
Cc: intel-wired-...@lists.osuosl.org
Cc: Jeff Kirsher
Signed-off-by: Salil Mehta
--
Change V1->V2
(*) Fixed the comments from Anthony Nguyen(Intel)
Link: https://lkml.org/lkml/2021/4/12/1997
---
drivers/net/ethernet/intel/ice/ice_lib.c | 14
patch removes the 8192~12287 range of packet statistics and uses the
8192~9216 and 9217~12287 ranges for statistics. This change depends on the
firmware upgrade.
Signed-off-by: Xi Wang
Signed-off-by: Peng Li
Signed-off-by: Salil Mehta
---
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 4
From: Huazhong Tan
When phy exists, phy_addr must less than PHY_MAX_ADDR.
If not, hclge_mac_mdio_config should return error.
And for fiber(phy_addr=0xff), it does not need hclge_mac_mdio_config.
Signed-off-by: Huazhong Tan
Signed-off-by: Peng Li
Signed-off-by: Salil Mehta
---
drivers/net
From: Fuyun Liang
This patch adds a check to support autoneg(ethtool -A) only when PHY
is attached with the port.
Fixes: e2cb1dec9779 ("net: hns3: Add HNS3 VF HCL(Hardware Compatibility
Layer) Support")
Signed-off-by: Fuyun Liang
Signed-off-by: Peng Li
Signed-off-by: Salil Mehta
--
will cause packet lost problem.
This patch fixes this problem by setting both vlan table, and
use hdev->vlan_table to manage thet port vlan table.
Signed-off-by: Yunsheng Lin
Signed-off-by: Peng Li
Signed-off-by: Salil Mehta
---
.../ethernet/hisilicon/hns3/hns3pf/hclge_main.c
Signed-off-by: Peng Li
Signed-off-by: Salil Mehta
---
.../ethernet/hisilicon/hns3/hns3pf/hclge_main.c| 55 +-
1 file changed, 34 insertions(+), 21 deletions(-)
diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
b/drivers/net/ethernet/hisilic
y: Peng Li
Signed-off-by: Salil Mehta
---
.../net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c| 19 +++
1 file changed, 19 insertions(+)
diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c
b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c
index ff13d18..fab7
f-by: Peng Li
Signed-off-by: Salil Mehta
---
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
b/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
index 8c55965..c4e2950 100644
--- a/d
: Huazhong Tan
Signed-off-by: Peng Li
Signed-off-by: Salil Mehta
---
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 7 +--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
b/drivers/net/ethernet/hisilicon/h
This patch-set presents some miscellaneous bug fixs and cleanups for
HNS3 Ethernet Driver.
Fuyun Liang (1):
net: hns3: Fix to support autoneg only for port attached with phy
Huazhong Tan (5):
net: hns3: fix to correctly fetch l4 protocol outer header
net: hns3: Fixes the out of bounds acces
already
return the error to the user space, so the user should be aware of
the error.
Signed-off-by: Yunsheng Lin
Signed-off-by: Peng Li
Signed-off-by: Salil Mehta
---
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c | 5 +
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a
From: Yunsheng Lin
This patch adds support of hardware rx-vlan-offload to VF driver.
VF uses mailbox to convey PF to configure the hardware.
Signed-off-by: Yunsheng Lin
Signed-off-by: Peng Li
Signed-off-by: Salil Mehta
---
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c | 8
ort this feature now.
Signed-off-by: Yunsheng Lin
Signed-off-by: Peng Li
Signed-off-by: Salil Mehta
---
drivers/net/ethernet/hisilicon/hns3/hnae3.h | 7 --
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c | 89 -
2 files changed, 96 deletions(-)
diff --git a/driv
NCL_CONFIG
when resetting.
Fixes: 424eb834a9be ("net: hns3: Unified HNS3 {VF|PF} Ethernet Driver for hip08
SoC")
Signed-off-by: Yunsheng Lin
Signed-off-by: Peng Li
Signed-off-by: Salil Mehta
---
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c | 8
1 file changed, 4 insert
hns3: Add support of HNS3 Ethernet Driver for hip08
SoC")
Signed-off-by: Yunsheng Lin
Signed-off-by: Peng Li
Signed-off-by: Salil Mehta
---
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c | 34 ++---
1 file changed, 30 insertions(+), 4 deletions(-)
diff --git a/d
From: Yunsheng Lin
This patch refactors the loopback related function in order
to support the serdes loopback.
Signed-off-by: Yunsheng Lin
Signed-off-by: Peng Li
Signed-off-by: Salil Mehta
---
drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c | 21 +++
.../ethernet/hisilicon/hns3
Fixes to some of the bugs found during system test, internal review
and clean-up
Yunsheng Lin (4):
net: hns3: Fix for setting mac address when resetting
net: hns3: remove add/del_tunnel_udp in hns3_enet module
net: hns3: fix for cleaning ring problem
net: hns3: refactor the loopback relate
After VF driver knows that hardware reset has been performed
successfully, it should proceed ahead and reset the enet layer.
This primarily consists of bringing down interface, clearing
TX/RX rings, disassociating vectors from ring etc.
Signed-off-by: Salil Mehta
---
.../ethernet/hisilicon/hns3
still gets processed
in context to mailbox interrupt.
ARQ is important as VF reset introduces some new async messages
like MBX_ASSERTING_RESET which adds up to the presssure on the
responses for synchronousmessages and they timeout even more
quickly.
Signed-off-by: Salil Mehta
---
drivers/net
received VF message, inform
the VF of assertion and reset the VF using cmdq interface.
Signed-off-by: Salil Mehta
---
.../ethernet/hisilicon/hns3/hns3pf/hclge_main.c| 2 +-
.../ethernet/hisilicon/hns3/hns3pf/hclge_main.h| 1 +
.../net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c | 42
the hardware to
complete the reset and then further resets/tears its own stack.
Signed-off-by: Salil Mehta
---
drivers/net/ethernet/hisilicon/hns3/hclge_mbx.h | 1 +
drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_mbx.c | 12
2 files changed, 13 insertions(+)
diff
VF driver depends upon PF to eventually reset the hardware. This
request is made using the mailbox command. This patch adds the
required function to acheive above.
Signed-off-by: Salil Mehta
---
.../net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c | 19 +++
1 file changed, 19
VF reset would involve handling of different reset related events
from the stack, physical function, mailbox etc. Reset service task
would be used in servicing such reset event requests and later
handling the hardware completions waits and initiating the stack
resets.
Signed-off-by: Salil Mehta
resetting the stack/enet layer, which
in turn means reinitializing the ring management/enet layer.
Note: we would be adding support of 3. later as a separate patch.
This decision should not affect VF reset as its event handling
is generic in nature.
Signed-off-by: Salil Mehta
---
drivers/net/eth
following:
1. Makes the existing watchdog timeout handler in enet layer generic
i.e. suitable for both VF and PF and
2. Introduces the new reset event handler for the VF code.
3. Changes existing reset event handler of PF code to initialize the
reset level
Signed-off-by: Salil Mehta
: Salil Mehta
---
.../ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c | 106 ++---
.../ethernet/hisilicon/hns3/hns3vf/hclgevf_main.h | 14 +++
2 files changed, 106 insertions(+), 14 deletions(-)
diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c
b/drivers/net
"[PATCH net-next 00/11] fix some bugs for HNS3
driver"
Link: https://lkml.org/lkml/2018/3/21/72
Salil Mehta (9):
net: hns3: Changes to make enet watchdog timeout func common for PF/VF
net: hns3: Add VF Reset Service Task to support event handling
net: hns3: Add VF Reset de
This patch fixes the static check warning due to missing handling leg of
unsupported L3 protocol type in the hns3_get_l4_protocol() function.
Fixes: 76ad4f0ee747 ("net: hns3: Add support of HNS3 Ethernet Driver for
hip08 SoC")
Reported-by: Dan Carpenter
Signed-off-by: Salil Mehta
--
This patch fixes the static check error warning in hns3_get_link_ksettings()
function by re-arranging the code.
Fixes: 496d03e960ae ("net: hns3: Add Ethtool support to HNS3 Driver")
Reported-by: Dan Carpenter
Signed-off-by: Salil Mehta
---
.../ethernet/hisilicon/hns3/hns3pf/hns3
This patch-set fixes various bugs reported by community.
Salil Mehta (3):
net: hns3: Fixes the missing u64_stats_fetch_begin_irq in 64-bit stats
fetch
net: hns3: Fixes the static checker error warning in
hns3_get_link_ksettings()
net: hns3: Fixes the static check warning due to
this code ever runs on 32-bit platform and we are trying to do 64-bit
stats fetch.
Fixes: 76ad4f0ee747 ("net: hns3: Add support of HNS3 Ethernet Driver for
hip08 SoC")
Reported-by: Dan Carpenter
Signed-off-by: Salil Mehta
---
drivers/net/ethernet/hisilicon/hns3/hns3pf/hns3_enet.c | 2
This patch adds the following support to the HNS3 driver:
1. Support to change the Maximum Transmission Unit of a
netdevice and of a port in hardware .
2. Initializes the supported MTU range for the netdevice.
Signed-off-by: lipeng
Signed-off-by: Salil Mehta
---
.../net/ethernet/hisilicon
Hi Andrew
> -Original Message-
> From: Andrew Lunn [mailto:and...@lunn.ch]
> Sent: Friday, August 18, 2017 2:31 PM
> To: Salil Mehta
> Cc: da...@davemloft.net; Zhuangyuzeng (Yisen); lipeng (Y);
> dan.carpen...@oracle.com; mehta.salil@gmail.com;
> netdev@vger.
Hi Andrew
> -Original Message-
> From: Andrew Lunn [mailto:and...@lunn.ch]
> Sent: Friday, August 18, 2017 4:04 PM
> To: Salil Mehta
> Cc: da...@davemloft.net; Zhuangyuzeng (Yisen); lipeng (Y);
> dan.carpen...@oracle.com; mehta.salil@gmail.com;
> netdev@vger.
Hi Andrew
> -Original Message-
> From: Andrew Lunn [mailto:and...@lunn.ch]
> Sent: Friday, August 18, 2017 5:02 PM
> To: Salil Mehta
> Cc: da...@davemloft.net; Zhuangyuzeng (Yisen); lipeng (Y);
> mehta.salil@gmail.com; netdev@vger.kernel.org; linux-
> ker...@vge
This patch adds the following support to the HNS3 driver:
1. Support to change the Maximum Transmission Unit of a
of a port in the HNS NIC hardware .
2. Initializes the supported MTU range for the netdevice.
Signed-off-by: lipeng
Signed-off-by: Salil Mehta
---
PATCH V2: Addresses comments
Hi Andrew,
> > -Original Message-
> > From: Andrew Lunn [mailto:and...@lunn.ch]
> > Sent: Friday, August 18, 2017 5:02 PM
> > To: Salil Mehta
> > Cc: da...@davemloft.net; Zhuangyuzeng (Yisen); lipeng (Y);
> > mehta.salil@gmail.com; ne
Hi Leon
> -Original Message-
> From: Leon Romanovsky [mailto:l...@kernel.org]
> Sent: Sunday, August 20, 2017 8:05 AM
> To: Salil Mehta
> Cc: da...@davemloft.net; Zhuangyuzeng (Yisen); lipeng (Y);
> mehta.salil@gmail.com; netdev@vger.kernel.org; linux-
> ker...@v
This patch adds the following support to the HNS3 driver:
1. Support to change the Maximum Transmission Unit of a
of a port in the HNS NIC hardware.
2. Initializes the supported MTU range for the netdevice.
Signed-off-by: lipeng
Signed-off-by: Salil Mehta
---
PATCH V3: Addressed some minor
Hi Leon,
-Original Message-
> From: Leon Romanovsky [mailto:l...@kernel.org]
> Sent: Monday, August 21, 2017 11:32 AM
> To: Salil Mehta
> Cc: da...@davemloft.net; Zhuangyuzeng (Yisen); lipeng (Y);
> mehta.salil@gmail.com; netdev@vger.kernel.org; linux-
> ker...@vger
Hi Andrew,
> -Original Message-
> From: Andrew Lunn [mailto:and...@lunn.ch]
> Sent: Monday, August 21, 2017 3:30 PM
> To: Salil Mehta
> Cc: da...@davemloft.net; Zhuangyuzeng (Yisen); lipeng (Y);
> mehta.salil@gmail.com; netdev@vger.kernel.org; linux-
> ker...@vge
This patch adds the following support to the HNS3 driver:
1. Support to change the Maximum Transmission Unit of a
port in the HNS NIC hardware.
2. Initializes the supported MTU range for the netdevice.
Signed-off-by: lipeng
Signed-off-by: Salil Mehta
---
PATCH V4: Addressed some minor
Sorry, Please ignore this mail.
I forgot to add the Andrew Lunn signed-off-by Tag will this patch.
I will add the tag and send the updated version of V4 again.
Sorry again.
> -Original Message-
> From: Salil Mehta
> Sent: Monday, August 21, 2017 3:40 PM
> To: da...@daveml
Hi Leon,
> -Original Message-
> From: Leon Romanovsky [mailto:l...@kernel.org]
> Sent: Monday, August 21, 2017 3:49 PM
> To: Salil Mehta
> Cc: da...@davemloft.net; Zhuangyuzeng (Yisen); lipeng (Y);
> mehta.salil@gmail.com; netdev@vger.kernel.org; linux-
> ker...@v
Hi Leon,
> -Original Message-
> From: linux-rdma-ow...@vger.kernel.org [mailto:linux-rdma-
> ow...@vger.kernel.org] On Behalf Of Leon Romanovsky
> Sent: Monday, August 21, 2017 3:48 PM
> To: Salil Mehta
> Cc: Andrew Lunn; da...@davemloft.net; Zhuangyuzeng
This patch adds the following support to the HNS3 driver:
1. Support to change the Maximum Transmission Unit of a
port in the HNS NIC hardware.
2. Initializes the supported MTU range for the netdevice.
Signed-off-by: lipeng
Signed-off-by: Salil Mehta
Reviewed-by: Andrew Lunn
Reviewed-by
(+) LinuxArm
> From: Michal Vokáč [mailto:michal.vo...@ysoft.com]
> Sent: Friday, March 1, 2019 12:58 PM
> To: liweihang
> Cc: netdev@vger.kernel.org; da...@davemloft.net; linyunsheng
> ; Zhuangyuzeng (Yisen)
> ; Salil Mehta ; lipeng
> (Y) ; shenjian (K)
> Subject: Re
hns3: Add HNS3 Acceleration Engine & Compatibility
Layer Support")
Signed-off-by: Yunsheng Lin
Signed-off-by: Peng Li
Signed-off-by: Salil Mehta
---
.../ethernet/hisilicon/hns3/hns3pf/hclge_main.c| 22 ++
1 file changed, 6 insertions(+), 16 deletions(-)
diff -
.
Fixes: 38eddd126772 ("net: hns3: Add support of the HNAE3 framework")
Signed-off-by: Lipeng
Signed-off-by: Salil Mehta
---
drivers/net/ethernet/hisilicon/hns3/hnae3.c | 43 ++---
1 file changed, 9 insertions(+), 34 deletions(-)
diff --git a/drivers/net/ethernet
t;net: hns3: Add HNS3 Acceleration Engine &
Compatibility Layer Support")
Signed-off-by: Mingguang Qu
Signed-off-by: Lipeng
Signed-off-by: Salil Mehta
---
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 6 +-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/driver
From: Lipeng
This patch fixes the initialization of MAC address, fetched from HNS3
firmware i.e. when it is not randomly generated, to the HNS3 hardware.
Fixes: ca60906d2795 ("net: hns3: Add support of HNS3 Ethernet Driver for
hip08 SoC")
Signed-off-by: Lipeng
Signed-off-by: S
Lipeng
Signed-off-by: Mingguang Qu
Signed-off-by: Salil Mehta
---
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h | 8 ++--
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 8
2 files changed, 14 insertions(+), 2 deletions(-)
diff --git a/drivers/net/ethernet/
This patch replaces the ethernet address copy instance with more
appropriate ether_addr_copy() function.
Fixes: 6427264ef330 ("net: hns3: Add HNS3 Acceleration Engine &
Compatibility Layer Support")
Signed-off-by: Salil Mehta
---
drivers/net/ethernet/hisilicon/hns3/hns3pf/hc
From: Lipeng
This patch fixes the IMP command being used to unmap the vector
from the corresponding ring.
Fixes: 6427264ef330 ("net: hns3: Add HNS3 Acceleration Engine &
Compatibility Layer Support")
Signed-off-by: Lipeng
Signed-off-by: Salil Mehta
---
drivers/net/ethernet/
net: hns3: Fixes the command used to unmap ring from vector
net: hns3: Fixes ring-to-vector map-and-unmap command
net: hns3: Fixes the initialization of MAC address in hardware
net: hns3: Fixes the default VLAN-id of PF
net: hns3: Fixes the premature exit of loop when matching clients
S
Signed-off-by: Lipeng
Signed-off-by: Salil Mehta
---
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
index bb45365..db4e07
Signed-off-by: Jian Shen
Signed-off-by: Peng Li
Signed-off-by: Salil Mehta
---
drivers/net/ethernet/hisilicon/hns3/hnae3.c | 12 +---
drivers/net/ethernet/hisilicon/hns3/hnae3.h | 3 +++
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 9 +++
From: Peng Li
HCLGE_PROMISC_TX_EN_B and HCLGE_PROMISC_RX_EN_B are not supported
on pdev revision(0x20), new revision(0x21) supports them.
Signed-off-by: Peng Li
Signed-off-by: Salil Mehta
---
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h | 2 ++
drivers/net/ethernet/hisilicon/hns3
F HCL(Hardware Compatibility Layer)
Support")
Reported-by: Xinwei Kong
Reported-by: Zhou Wang
Signed-off-by: Lijun Ou
Signed-off-by: Zhou Wang
Signed-off-by: Salil Mehta
---
drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c | 8 +---
1 file changed, 5 insertions(+), 3 deletions(-)
between driver and
firmware.
Signed-off-by: Jian Shen
Signed-off-by: Peng Li
Signed-off-by: Salil Mehta
---
.../net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h | 12 ++--
.../ethernet/hisilicon/hns3/hns3pf/hclge_main.c| 35 +++---
2 files changed, 6 insertions(+), 41
ned-off-by: Fuyun Liang
Signed-off-by: Peng Li
Signed-off-by: Salil Mehta
---
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c | 6 --
1 file changed, 6 deletions(-)
diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
b/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
index d1ef104..4c13
the
initialization state.
Fixes: 38caee9d3ee8 ("net: hns3: Add support of the HNAE3 framework")
Signed-off-by: Peng Li
Signed-off-by: Salil Mehta
---
drivers/net/ethernet/hisilicon/hns3/hnae3.c | 49 +++--
drivers/net/ethernet/hisilicon/hns3/hnae3.h | 4 ++
ensure
the buffer is clean when port is started. We should clear the rings
when clients are being un-initialized as well.
Fixes: 76ad4f0ee747 ("net: hns3: Add support of HNS3 Ethernet Driver for hip08
SoC")
Signed-off-by: Fuyun Liang
Signed-off-by: Peng Li
Signed-off-by: Salil Mehta
--
, the dirver just
needs to deal with locate command.
So the codes for link led, traffic led and speed led are useless now. This
patch removes these redundant codes.
Signed-off-by: Jian Shen
Signed-off-by: Peng Li
Signed-off-by: Salil Mehta
---
.../net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h
size from the first descriptor and
information like VLAN should be fetched from last BD.
Signed-off-by: Peng Li
Reviewed-by: Yisen Zhuang
Signed-off-by: Salil Mehta
---
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c | 36 -
1 file changed, 18 insertions(+), 18 deletions
This patch-set provides some bug fixes figured out during testing
and review. It also provides some additions due to running of the
existing code on the new revision of the HNS3 hardware.
Fuyun Liang (3):
net: hns3: Fixes the init of the VALID BD info in the descriptor
net: hns3: Removes unnec
this bit was not being (re-)initialized properly and hence was
causing problems.
Fixes: 76ad4f0ee747 ("net: hns3: Add support of HNS3 Ethernet Driver for hip08
SoC")
Signed-off-by: Fuyun Liang
Signed-off-by: Peng Li
Signed-off-by: Salil Mehta
---
drivers/net/ethernet/hisilicon/hns3/h
Fixes: c1a81619d73a ("net: hns3: Add mailbox interrupt handling to PF driver")
Signed-off-by: Xi Wang
Signed-off-by: Peng Li
Signed-off-by: Salil Mehta
---
.../net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c | 23 +++---
1 file changed, 20 insertions(+), 3 deletions(-
bit, 0 indicates the tag is not stripped and
1 indicates the tag is stripped.
This patch adds STRP_TAGP support for revision(0x21), and does not
change the revision(0x20) action.
Signed-off-by: Peng Li
Signed-off-by: Salil Mehta
---
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c | 42
From: Peng Li
HNS3 Hardware can support up to two VLAN tags in transmit leg, the PPP
module can handle the packets based on the tag1 and tag2 config. This
patch adds support for tag2 config for vlan handling
Signed-off-by: Peng Li
Signed-off-by: Salil Mehta
---
.../net/ethernet/hisilicon
From: Peng Li
Port 0/1 of HiP08 supports 10G and 25G. This patch adds a
change to configure NIC port speed same as that of optical
module(SFP/QFSP). Driver gets the optical module speed and
sets NIC port speed accordingly.
Signed-off-by: Peng Li
Signed-off-by: Salil Mehta
---
.../net
Hi Alexey,
> From: Alexey Khoroshilov [mailto:khoroshi...@ispras.ru]
> Sent: Saturday, December 22, 2018 9:55 PM
> To: Zhuangyuzeng (Yisen) ; Salil Mehta
> ; lipeng (Y)
> Cc: Alexey Khoroshilov ; David S. Miller
> ; netdev@vger.kernel.org; linux-
> ker...@vger
This patch-set adds support of hardware assisted GRO feature to
HNS3 driver on Rev B(=0x21) platform. Current hardware only
supports TCP/IPv{4|6} flows.
Change Log:
V1->V2:
1. Remove redundant print reported by Leon Romanovsky.
Link: https://lkml.org/lkml/2018/11/13/715
Peng Li (5):
net: hns
> From: yuehaibing
> Sent: Friday, January 25, 2019 3:14 AM
> To: da...@davemloft.net; Zhuangyuzeng (Yisen) ;
> Salil Mehta ; lipeng (Y)
> Cc: linux-ker...@vger.kernel.org; netdev@vger.kernel.org; yuehaibing
>
> Subject: [PATCH net-next] net: hns3: Fix potential NULL derefe
This patchset adds VF/PF PCIe register dump support to HNS3 VF and PF driver
using "ethtool -d" command.
Jian Shen (2):
net: hns3: Support "ethtool -d" for HNS3 VF driver
net: hns3: Adds support to dump(using ethool-d) PCIe regs in HNS3 PF
driver
.../ethernet/hisilicon/hns3/hns3pf/hclge_
From: Jian Shen
This patch adds support to dump PF PCIe registers using ethtool -d
for HNS3 PF Driver.
Signed-off-by: Jian Shen
Signed-off-by: Salil Mehta
---
.../ethernet/hisilicon/hns3/hns3pf/hclge_main.c| 120 -
.../ethernet/hisilicon/hns3/hns3pf/hclge_main.h
From: Jian Shen
This patch adds "ethtool -d" support for HNS3 VF Driver.
Signed-off-by: Jian Shen
Signed-off-by: Salil Mehta
---
.../ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c | 120 +
.../ethernet/hisilicon/hns3/hns3vf/hclgevf_main.h | 54 +
off-by: liuzhongzhu
Signed-off-by: Salil Mehta
---
drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c | 1 +
.../ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.c | 80 ++
.../ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.h | 3 +
3 files changed, 84 insertions(+)
diff --git a/drive
This patch-set adds few more debugfs commands to HNS3 Ethernet
Driver. Support has been added to query info related to below
items:
1. Packet buffer descriptor ("echo bd info [queue no] [bd index] > cmd")
2. Mac Forward table("echo dump mac tbl > cmd")
3. Port vlan Forward table("echo dump port vla
From: liuzhongzhu
This patch prints dcb register status information by module.
debugfs command:
root@(none)# echo dump tm map 100 > cmd
queue_id | qset_id | pri_id | tc_id
0100 | 0065| 08 | 00
root@(none)#
Signed-off-by: liuzhongzhu
Signed-off-by: Salil Mehta
---
drivers/
0 |0
01 |c2:f1:c5:82:68:17|0 |0|0 ||0 |00 |00 |0
root@(none)#
Signed-off-by: liuzhongzhu
Signed-off-by: Salil Mehta
---
drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c | 1 +
.../net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h | 16 ++
.../ethernet/hisilicon/hns3/
ned-off-by: liuzhongzhu
Signed-off-by: Salil Mehta
---
drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c | 7 ++
.../net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h | 9 ++
.../ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.c | 102 +
.../ethernet/hisilicon/hns3/hns
47 784
root@(none)#
Signed-off-by: liuzhongzhu
Signed-off-by: Salil Mehta
---
drivers/net/ethernet/hisilicon/hns3/hclge_mbx.h| 1 +
drivers/net/ethernet/hisilicon/hns3/hnae3.h| 1 +
drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c | 33 ++
.../et
2: 0x2
DFX_MSIX_INFO_NIC_3: 0x2
DFX_MSIX_INFO_ROC_0: 0xc000
DFX_MSIX_INFO_ROC_1: 0x0
DFX_MSIX_INFO_ROC_2: 0x0
DFX_MSIX_INFO_ROC_3: 0x0
root@(none)#
Signed-off-by: liuzhongzhu
Signed-off-by: Salil Mehta
---
drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c | 15 +
.../net/ethernet/hisilicon/hns3/
c_addr |UM_MC_RDATA
|0556 |33:33:00:00:00:01 |:0001:::
|2812 |33:33:ff:82:68:17 |:0001:::
|2844 |01:00:5e:00:00:01 |:0001:::
root@(none)#
Signed-off-by: liuzhongzhu
Signed-off-by: Salil
@(none)#
Signed-off-by: liuzhongzhu
Signed-off-by: Salil Mehta
---
drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c | 1 +
.../ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.c | 93 ++
2 files changed, 94 insertions(+)
diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3_debugf
1 - 100 of 552 matches
Mail list logo