History log of /dpdk/drivers/net/ngbe/ngbe_ethdev.c (Results 1 – 25 of 79)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: v24.11, v24.11-rc4, v24.11-rc3, v24.11-rc2
# baca8ec0 04-Nov-2024 Jiawen Wu <jiawenwu@trustnetic.com>

net/ngbe: restrict configuration of VLAN strip offload

There is a hardware limitation that Rx ring config register is not
writable when Rx ring is enabled, i.e. the NGBE_RXCFG_ENA bit is set.
But di

net/ngbe: restrict configuration of VLAN strip offload

There is a hardware limitation that Rx ring config register is not
writable when Rx ring is enabled, i.e. the NGBE_RXCFG_ENA bit is set.
But disabling the ring when there is traffic will cause ring get stuck.
So restrict the configuration of VLAN strip offload only if device is
started.

Fixes: 59b46438fdaa ("net/ngbe: support VLAN offload and VLAN filter")
Cc: stable@dpdk.org

Signed-off-by: Jiawen Wu <jiawenwu@trustnetic.com>

show more ...


# 68f04c0a 04-Nov-2024 Jiawen Wu <jiawenwu@trustnetic.com>

net/ngbe: fix interrupt lost in legacy or MSI mode

When interrupt is legacy or MSI mode, shared interrupt may cause the
interrupt cannot be re-enabled. So fix to read the shared interrupt.

Fixes: b

net/ngbe: fix interrupt lost in legacy or MSI mode

When interrupt is legacy or MSI mode, shared interrupt may cause the
interrupt cannot be re-enabled. So fix to read the shared interrupt.

Fixes: b9246b8fa280 ("net/ngbe: support link update")
Cc: stable@dpdk.org

Signed-off-by: Jiawen Wu <jiawenwu@trustnetic.com>

show more ...


# b8d52e10 04-Nov-2024 Jiawen Wu <jiawenwu@trustnetic.com>

net/ngbe: reconfigure more MAC Rx registers

When link status changes, there is a probability that no more packets
can be received on the port, due to hardware defects. These MAC Rx
registers should

net/ngbe: reconfigure more MAC Rx registers

When link status changes, there is a probability that no more packets
can be received on the port, due to hardware defects. These MAC Rx
registers should be reconfigured to fix this problem.

Fixes: b9246b8fa280 ("net/ngbe: support link update")
Fixes: a7c5f95ed9c2 ("net/ngbe: reconfigure MAC Rx when link update")
Cc: stable@dpdk.org

Signed-off-by: Jiawen Wu <jiawenwu@trustnetic.com>

show more ...


# cb7be5b5 04-Nov-2024 Jiawen Wu <jiawenwu@trustnetic.com>

net/ngbe: fix driver load bit to inform firmware

Drv_load bit will be reset to default 0 after hardware LAN reset,
reconfigure it to inform firmware that driver is loaded. And set it to 0
when devic

net/ngbe: fix driver load bit to inform firmware

Drv_load bit will be reset to default 0 after hardware LAN reset,
reconfigure it to inform firmware that driver is loaded. And set it to 0
when device is closed.

Fixes: 3518df5774c7 ("net/ngbe: support device start/stop")
Fixes: cc63194e89cb ("net/ngbe: support close and reset device")
Cc: stable@dpdk.org

Signed-off-by: Jiawen Wu <jiawenwu@trustnetic.com>

show more ...


# 3eba2f28 04-Nov-2024 Jiawen Wu <jiawenwu@trustnetic.com>

net/ngbe: add Tx descriptor error statistics

Count the number of packets not sent due to Tx descriptor error.

Signed-off-by: Jiawen Wu <jiawenwu@trustnetic.com>


Revision tags: v24.11-rc1, v24.07, v24.07-rc4, v24.07-rc3, v24.07-rc2, v24.07-rc1, v24.03, v24.03-rc4, v24.03-rc3, v24.03-rc2, v24.03-rc1
# f665790a 13-Dec-2023 David Marchand <david.marchand@redhat.com>

drivers: remove redundant newline from logs

Fix places where two newline characters may be logged.

Cc: stable@dpdk.org

Signed-off-by: David Marchand <david.marchand@redhat.com>
Acked-by: Chengwen

drivers: remove redundant newline from logs

Fix places where two newline characters may be logged.

Cc: stable@dpdk.org

Signed-off-by: David Marchand <david.marchand@redhat.com>
Acked-by: Chengwen Feng <fengchengwen@huawei.com>

show more ...


# 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 ...


# 5547efc7 18-Jun-2024 Jiawen Wu <jiawenwu@trustnetic.com>

net/ngbe: support Rx interrupt

Implement Rx queue interrupt enable/disable functions.

Signed-off-by: Jiawen Wu <jiawenwu@trustnetic.com>


# df2075eb 18-Jun-2024 Jiawen Wu <jiawenwu@trustnetic.com>

net/ngbe: fix MTU range

The valid range of MTU is 68 to 9414. Set min_mtu and max_mtu in
dev_info.

Fixes: 07baabb6a51a ("net/ngbe: support MTU set")
Cc: stable@dpdk.org

Signed-off-by: Jiawen Wu <j

net/ngbe: fix MTU range

The valid range of MTU is 68 to 9414. Set min_mtu and max_mtu in
dev_info.

Fixes: 07baabb6a51a ("net/ngbe: support MTU set")
Cc: stable@dpdk.org

Signed-off-by: Jiawen Wu <jiawenwu@trustnetic.com>

show more ...


# c602202c 18-Jun-2024 Jiawen Wu <jiawenwu@trustnetic.com>

net/ngbe: fix hotplug remove

This bug occurs in OpenvSwitch. After adding a port bound to vfio-pci
to ovs, detach it from ovs and then unbind it from vfio-pci(that is
hotplug) will cause operating s

net/ngbe: fix hotplug remove

This bug occurs in OpenvSwitch. After adding a port bound to vfio-pci
to ovs, detach it from ovs and then unbind it from vfio-pci(that is
hotplug) will cause operating system to get stuck.

Fixes: 6ee7e574cd48 ("net/ngbe: support probe and remove")
Cc: stable@dpdk.org

Signed-off-by: Jiawen Wu <jiawenwu@trustnetic.com>

show more ...


# 5f1ab0d5 18-Jun-2024 Jiawen Wu <jiawenwu@trustnetic.com>

net/ngbe: add WOL and NCSI capability

Support WOL and NCSI capability for devices. And there is one OEM
NCSI NIC which can not be identified from sub-system ID, it needs
to check NCSI pin status in

net/ngbe: add WOL and NCSI capability

Support WOL and NCSI capability for devices. And there is one OEM
NCSI NIC which can not be identified from sub-system ID, it needs
to check NCSI pin status in firmware.

Signed-off-by: Jiawen Wu <jiawenwu@trustnetic.com>

show more ...


# e94c20c3 19-Apr-2024 Jiawen Wu <jiawenwu@trustnetic.com>

net/ngbe: add SSE/NEON vectorized Rx/Tx

To optimize Rx/Tx burst process, add SSE/NEON vector instructions on
x86/arm architecture.

The performance test results on Phytium D2000(ARM64) show that,
th

net/ngbe: add SSE/NEON vectorized Rx/Tx

To optimize Rx/Tx burst process, add SSE/NEON vector instructions on
x86/arm architecture.

The performance test results on Phytium D2000(ARM64) show that,
throughput for 128-byte packets increased from 76.797% to 94.375%.

Signed-off-by: Jiawen Wu <jiawenwu@trustnetic.com>

show more ...


# ba6a168a 01-Feb-2024 Sivaramakrishnan Venkat <venkatx.sivaramakrishnan@intel.com>

drivers/net: return number of supported packet types

Missing "RTE_PTYPE_UNKNOWN" ptype causes buffer overflow.
Enhance code such that the dev_supported_ptypes_get()
function pointer now returns the

drivers/net: return number of supported packet types

Missing "RTE_PTYPE_UNKNOWN" ptype causes buffer overflow.
Enhance code such that the dev_supported_ptypes_get()
function pointer now returns the number of elements to
eliminate the need for "RTE_PTYPE_UNKNOWN" as the last item.

Same applied to 'buffer_split_supported_hdr_ptypes_get()' dev_ops too.

Signed-off-by: Sivaramakrishnan Venkat <venkatx.sivaramakrishnan@intel.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@amd.com>

show more ...


Revision tags: v23.11, v23.11-rc4, v23.11-rc3, v23.11-rc2, v23.11-rc1
# bf86fb0b 28-Sep-2023 Jiawen Wu <jiawenwu@trustnetic.com>

net/ngbe: check process type in close operation

The secondary processes are not allowed to release shared resources.
Only process-private resources should be freed in a secondary process.
Most of th

net/ngbe: check process type in close operation

The secondary processes are not allowed to release shared resources.
Only process-private resources should be freed in a secondary process.
Most of the time, there is no process-private resource,
so the close operation is just forbidden in a secondary process.

Fixes: cc63194e89cb ("net/ngbe: support close and reset device")
Cc: stable@dpdk.org

Signed-off-by: Jiawen Wu <jiawenwu@trustnetic.com>

show more ...


# 3dd64cf8 28-Sep-2023 Jiawen Wu <jiawenwu@trustnetic.com>

net/ngbe: keep link down after device close

When the port is closed, hardware is reset to power on. And
ngbe_dev_stop() is just returned 0 to avoid secondary calls,
so that the link led remains on.

net/ngbe: keep link down after device close

When the port is closed, hardware is reset to power on. And
ngbe_dev_stop() is just returned 0 to avoid secondary calls,
so that the link led remains on. Fix this bug by adding to turn
off the PHY power.

Fixes: 3518df5774c7 ("net/ngbe: support device start/stop")
Fixes: 708ebe7d0399 ("net/ngbe: fix external PHY power down")
Cc: stable@dpdk.org

Signed-off-by: Jiawen Wu <jiawenwu@trustnetic.com>

show more ...


# a7c5f95e 28-Sep-2023 Jiawen Wu <jiawenwu@trustnetic.com>

net/ngbe: reconfigure MAC Rx when link update

Fix the bug that after setting flow control parameters, link status
change (for example, set PHY power on/off) causes the port to no longer
receive pack

net/ngbe: reconfigure MAC Rx when link update

Fix the bug that after setting flow control parameters, link status
change (for example, set PHY power on/off) causes the port to no longer
receive packets.

Fixes: b9246b8fa280 ("net/ngbe: support link update")
Cc: stable@dpdk.org

Signed-off-by: Jiawen Wu <jiawenwu@trustnetic.com>

show more ...


# d19fa5a1 28-Sep-2023 Jiawen Wu <jiawenwu@trustnetic.com>

net/ngbe: fix flow control

Fix flow control high/low water limit.

Fixes: f40e9f0e2278 ("net/ngbe: support flow control")
Cc: stable@dpdk.org

Signed-off-by: Jiawen Wu <jiawenwu@trustnetic.com>


Revision tags: v23.07, v23.07-rc4, v23.07-rc3, v23.07-rc2
# 659cfce0 14-Jun-2023 Jiawen Wu <jiawenwu@trustnetic.com>

net/ngbe: remove redundant codes

Remove redundant function ngbe_dev_setup_link_alarm_handler() and
related codes.

Fixes: b9246b8fa280 ("net/ngbe: support link update")
Cc: stable@dpdk.org

Signed-o

net/ngbe: remove redundant codes

Remove redundant function ngbe_dev_setup_link_alarm_handler() and
related codes.

Fixes: b9246b8fa280 ("net/ngbe: support link update")
Cc: stable@dpdk.org

Signed-off-by: Jiawen Wu <jiawenwu@trustnetic.com>

show more ...


# 21f702d5 14-Jun-2023 Jiawen Wu <jiawenwu@trustnetic.com>

net/ngbe: fix link status in no LSC mode

When using no LSC mode, device link status is sometimes get incorrectly.
Introduce hw->lsc to fix this issue.

Fixes: 3d0af7066759 ("net/ngbe: setup PHY link

net/ngbe: fix link status in no LSC mode

When using no LSC mode, device link status is sometimes get incorrectly.
Introduce hw->lsc to fix this issue.

Fixes: 3d0af7066759 ("net/ngbe: setup PHY link")
Fixes: 3518df5774c7 ("net/ngbe: support device start/stop")
Cc: stable@dpdk.org

Signed-off-by: Jiawen Wu <jiawenwu@trustnetic.com>

show more ...


# 9e2d2fad 14-Jun-2023 Jiawen Wu <jiawenwu@trustnetic.com>

net/ngbe: fix extended statistics

Fix to show tx_broadcast_packets and tx_multicast_packets counters.

Fixes: 8b433d04adc9 ("net/ngbe: support device xstats")
Cc: stable@dpdk.org

Signed-off-by: Jia

net/ngbe: fix extended statistics

Fix to show tx_broadcast_packets and tx_multicast_packets counters.

Fixes: 8b433d04adc9 ("net/ngbe: support device xstats")
Cc: stable@dpdk.org

Signed-off-by: Jiawen Wu <jiawenwu@trustnetic.com>

show more ...


Revision tags: v23.07-rc1, v23.03, v23.03-rc4, v23.03-rc3, v23.03-rc2, v23.03-rc1
# f3ff9f28 02-Feb-2023 Jiawen Wu <jiawenwu@trustnetic.com>

net/ngbe: handle chip overheat

Support to handle overheat interrupt.

Signed-off-by: Jiawen Wu <jiawenwu@trustnetic.com>


Revision tags: v22.11, v22.11-rc4, v22.11-rc3, v22.11-rc2, v22.11-rc1
# abea8974 02-Sep-2022 Jiawen Wu <jiawenwu@trustnetic.com>

net/ngbe: support link down/up

Add support to set device link down/up.

Signed-off-by: Jiawen Wu <jiawenwu@trustnetic.com>


# d5774f0c 02-Sep-2022 Jiawen Wu <jiawenwu@trustnetic.com>

net/ngbe: fix maximum frame size

Remain the same max frame size after the device restarts.

Fixes: 07baabb6a51a ("net/ngbe: support MTU set")
Cc: stable@dpdk.org

Signed-off-by: Jiawen Wu <jiawenwu@

net/ngbe: fix maximum frame size

Remain the same max frame size after the device restarts.

Fixes: 07baabb6a51a ("net/ngbe: support MTU set")
Cc: stable@dpdk.org

Signed-off-by: Jiawen Wu <jiawenwu@trustnetic.com>

show more ...


# fee9350f 02-Sep-2022 Jiawen Wu <jiawenwu@trustnetic.com>

net/ngbe: rename some extended statistics

Rename rx_oversize_errors to rx_oversize_cnt since it depends on giant
packet size limit instead of MTU, by hardware design.
Rename rx_drop_packets and tx_d

net/ngbe: rename some extended statistics

Rename rx_oversize_errors to rx_oversize_cnt since it depends on giant
packet size limit instead of MTU, by hardware design.
Rename rx_drop_packets and tx_drop_packets to rx_dma_drop and tx_dma_drop
to indicate the drop location.
And add tx_dma_drop to extended statistics.

Fixes: 8b433d04adc9 ("net/ngbe: support device xstats")
Cc: stable@dpdk.org

Signed-off-by: Jiawen Wu <jiawenwu@trustnetic.com>

show more ...


Revision tags: v22.07, v22.07-rc4, v22.07-rc3
# 9fa23029 29-Jun-2022 Jiawen Wu <jiawenwu@trustnetic.com>

net/ngbe: fix customized device probing

The devices with OEM subsystem vendor ID failed to be initialized,
because flash was read before memory address was set.

Fixes: 240422edbf84 ("net/ngbe: supp

net/ngbe: fix customized device probing

The devices with OEM subsystem vendor ID failed to be initialized,
because flash was read before memory address was set.

Fixes: 240422edbf84 ("net/ngbe: support OEM subsystem vendor ID")

Signed-off-by: Jiawen Wu <jiawenwu@trustnetic.com>

show more ...


1234