app/testpmd: enable CRC strip without capability check
PATCH 1/1 app/testpmd: enable CRC strip without capability check
Some hardware doesn't support disabling CRC strip. In techboard it has been decided to enable CRC strip always.
The testpmd update in commit 8b9bd0efe0b6, enables CRC strip only if PMD reports CRC strip capability. Not all PMDs updated to report CRC strip.
For the PMDs not reporting CRC strip testpmd behavior changed and disabling CRC strip for them. And this may generate error for PMDs that doesn't support disabling CRC strip.
Removing capability check for this release. In long term there can be option to remove CRC strip flag completely or adding a new flag to let PMD say disabling is not supported.
---
Cc: [email protected]
Cc: [email protected]
--- app/test-pmd/testpmd.c | 4 ---- 1 file changed, 4 deletions(-)
app/test-pmd/testpmd.c +0 -4
@@ -694,10 +694,6 @@ init_config(void) DEV_TX_OFFLOAD_MBUF_FAST_FREE)) port->dev_conf.txmode.offloads &= ~DEV_TX_OFFLOAD_MBUF_FAST_FREE; -if (!(port->dev_info.rx_offload_capa & -DEV_RX_OFFLOAD_CRC_STRIP )) - port->dev_conf.rxmode.offloads &= - ~DEV_RX_OFFLOAD_CRC_STRIP ;if (numa_support) {if (port_numa[pid] !=NUMA_NO_CONFIG ) port_per_socket[port_numa[pid]]++;
Signature · 1 line
2.14.3
Quoted 41 lines
-----Original Message-----
From: Yigit, Ferruh
Sent: Thursday, February 8, 2018 12:08 PM
To: Lu, Wenzhuo <[email protected]>; Wu, Jingjing <[email protected]>
Cc: [email protected]; Yigit, Ferruh <[email protected]>; Thomas Monjalon <[email protected]>; Ananyev, Konstantin <[email protected]>; [email protected]; [email protected]
Subject: [PATCH] app/testpmd: enable CRC strip without capability checkSome hardware doesn't support disabling CRC strip. In techboard it has been decided to enable CRC strip always.
The testpmd update in commit
8b9bd0efe0b6, enables CRC strip only if PMD reports CRC strip capability. Not all PMDs updated to report CRC strip.For the PMDs not reporting CRC strip testpmd behavior changed and disabling CRC strip for them. And this may generate error for PMDs that doesn't support disabling CRC strip.
Removing capability check for this release. In long term there can be option to remove CRC strip flag completely or adding a new flag to let PMD say disabling is not supported.
Fixes 8b9bd0efe0b6 ("app/testpmd: disable Rx VLAN offloads by default")Signed-off-by Ferruh Yigit <[email protected]>---
Cc: [email protected]
Cc: [email protected]--- app/test-pmd/testpmd.c | 4 ---- 1 file changed, 4 deletions(-)app/test-pmd/testpmd.c +0
-0@@ -694,10 +694,6 @@ init_config(void) DEV_TX_OFFLOAD_MBUF_FAST_FREE))
app/test-pmd/testpmd.c init_config(void)
Quoted 10 lines
app/test-pmd/testpmd.c +0
-5port->dev_conf.txmode.offloads &= ~DEV_TX_OFFLOAD_MBUF_FAST_FREE ; -if (!(port->dev_info.rx_offload_capa & -DEV_RX_OFFLOAD_CRC_STRIP )) - port->dev_conf.rxmode.offloads &= - ~DEV_RX_OFFLOAD_CRC_STRIP ;if (numa_support) {if (port_numa[pid] !=NUMA_NO_CONFIG ) port_per_socket[port_numa[pid]]++; --
Quoted 1 line
2.14.3
Ferruh Yigit
AppliedQuoted 25 lines · Konstantin
Quoted 25 lines
-----Original Message-----
From: Yigit, Ferruh
Sent: Thursday, February 8, 2018 12:08 PM
To: Lu, Wenzhuo <[email protected]>; Wu, Jingjing <[email protected]>
Cc: [email protected]; Yigit, Ferruh <[email protected]>; Thomas Monjalon <[email protected]>; Ananyev, Konstantin <[email protected]>; [email protected]; [email protected]
Subject: [PATCH] app/testpmd: enable CRC strip without capability checkSome hardware doesn't support disabling CRC strip. In techboard it has been decided to enable CRC strip always.
The testpmd update in commit
8b9bd0efe0b6, enables CRC strip only if PMD reports CRC strip capability. Not all PMDs updated to report CRC strip.For the PMDs not reporting CRC strip testpmd behavior changed and disabling CRC strip for them. And this may generate error for PMDs that doesn't support disabling CRC strip.
Removing capability check for this release. In long term there can be option to remove CRC strip flag completely or adding a new flag to let PMD say disabling is not supported.
Quoted 5 lines
Quoted 3 lines
Fixes 8b9bd0efe0b6 ("app/testpmd: disable Rx VLAN offloads by default")Signed-off-by Ferruh Yigit <[email protected]>
Applied to dpdk-next-net/master, thanks.