#
91e64c0e |
| 16-Jul-2024 |
Jiawen Wu <jiawenwu@trustnetic.com> |
net/ngbe: disable LLDP by default
In the new firmware versions, LLDP is enabled by default to implement new features in other drivers. But it is useless in DPDK. So disable it in device initializati
net/ngbe: disable LLDP by default
In the new firmware versions, LLDP is enabled by default to implement new features in other drivers. But it is useless in DPDK. So disable it in device initialization to prevent it from affecting hardware default behavior.
Build errors on some ARM platforms are introduced by this patch:
../drivers/net/ngbe/base/ngbe_mng.c: In function 'ngbe_hic_get_lldp': ../drivers/net/ngbe/base/ngbe_mng.c:127:36: error: array subscript 2 is outside array bounds of 'struct ngbe_hic_write_lldp[1]' [-Werror= array-bounds] 127 | buffer[bi] = rd32a(hw, NGBE_MNGMBX, bi); ../drivers/net/ngbe/base/ngbe_mng.c:385:36: note: while referencing 'buffer' 385 | struct ngbe_hic_write_lldp buffer;
So remove the redundant code 'resp->cmd == 0x30' to fix this issue.
Signed-off-by: Jiawen Wu <jiawenwu@trustnetic.com>
show more ...
|
#
c811e6a4 |
| 23-Feb-2022 |
Jiawen Wu <jiawenwu@trustnetic.com> |
net/ngbe: fix debug logs
Remove 'DEBUGFUNC' due to too many invalid debug log prints, unify the DEBUG level macros.
Fixes: cc934df178ab ("net/ngbe: add log and error types") Cc: stable@dpdk.org
Si
net/ngbe: fix debug logs
Remove 'DEBUGFUNC' due to too many invalid debug log prints, unify the DEBUG level macros.
Fixes: cc934df178ab ("net/ngbe: add log and error types") Cc: stable@dpdk.org
Signed-off-by: Jiawen Wu <jiawenwu@trustnetic.com>
show more ...
|
#
fbd5ceb0 |
| 09-Feb-2022 |
Jiawen Wu <jiawenwu@trustnetic.com> |
net/ngbe: support OEM customized LED
Support to get OEM customized LED configuration information from firmware. And driver needs to adjust the process of PHY setup link, based on this LED configurat
net/ngbe: support OEM customized LED
Support to get OEM customized LED configuration information from firmware. And driver needs to adjust the process of PHY setup link, based on this LED configuration.
Signed-off-by: Jiawen Wu <jiawenwu@trustnetic.com>
show more ...
|
#
ac6c5e9a |
| 09-Feb-2022 |
Jiawen Wu <jiawenwu@trustnetic.com> |
net/ngbe: fix Tx hang on queue disable
Add commands requesting firmware to enable or disable PCIe bus master. Disable PCIe master access to clear BME when stop hardware, and verify there are no pend
net/ngbe: fix Tx hang on queue disable
Add commands requesting firmware to enable or disable PCIe bus master. Disable PCIe master access to clear BME when stop hardware, and verify there are no pending requests.
Move disabling Tx queue after disabling PCIe bus master, to ensure that there are no packets left to cause Tx hang.
Fixes: 78710873c2f3 ("net/ngbe: add HW initialization") Cc: stable@dpdk.org
Signed-off-by: Jiawen Wu <jiawenwu@trustnetic.com>
show more ...
|
#
9459ea29 |
| 21-Oct-2021 |
Jiawen Wu <jiawenwu@trustnetic.com> |
net/ngbe: support EEPROM dump
Support to get and set device EEPROM data.
Signed-off-by: Jiawen Wu <jiawenwu@trustnetic.com>
|
#
506abd4a |
| 21-Oct-2021 |
Jiawen Wu <jiawenwu@trustnetic.com> |
net/ngbe: support FW version query
Add firmware version get operation.
Signed-off-by: Jiawen Wu <jiawenwu@trustnetic.com>
|
#
f501a195 |
| 08-Jul-2021 |
Jiawen Wu <jiawenwu@trustnetic.com> |
net/ngbe: initialize and validate EEPROM
Reset swfw lock before NVM access, init EEPROM and validate the checksum.
Signed-off-by: Jiawen Wu <jiawenwu@trustnetic.com>
|