[dpdk-dev] net/enic: fix CRC strip offload capability
Checks
Commit Message
The NIC always strips CRC, so advertise the CRC strip offload in
rx_offload_capa.
Fixes: 93fb21fdbe23 ("net/enic: enable overlay offload for VXLAN and GENEVE")
Signed-off-by: Hyong Youb Kim <hyonkim@cisco.com>
---
drivers/net/enic/enic_res.c | 1 +
1 file changed, 1 insertion(+)
Comments
On Mon, May 14, 2018 at 12:56:20AM -0700, Hyong Youb Kim wrote:
> The NIC always strips CRC, so advertise the CRC strip offload in
> rx_offload_capa.
Hi Ferruh,
Can you discard this patch? We are finding more offload flags are
missing. Will submit a new patch that sets them all instead of one patch
per flag. Sorry for the trouble.
Thanks..
-Hyong
On 5/14/2018 11:50 AM, Hyong Youb Kim wrote:
> On Mon, May 14, 2018 at 12:56:20AM -0700, Hyong Youb Kim wrote:
>> The NIC always strips CRC, so advertise the CRC strip offload in
>> rx_offload_capa.
>
> Hi Ferruh,
>
> Can you discard this patch? We are finding more offload flags are
> missing. Will submit a new patch that sets them all instead of one patch
> per flag.
OK, please provide new version.
@@ -188,6 +188,7 @@ int enic_get_vnic_config(struct enic *enic)
DEV_TX_OFFLOAD_TCP_CKSUM |
DEV_TX_OFFLOAD_TCP_TSO;
enic->rx_offload_capa =
+ DEV_RX_OFFLOAD_CRC_STRIP |
DEV_RX_OFFLOAD_VLAN_STRIP |
DEV_RX_OFFLOAD_IPV4_CKSUM |
DEV_RX_OFFLOAD_UDP_CKSUM |