net/mlx5: add GENEVE in tunnel offloads capabilities
GENEVE is available in tunnel offloads. Add it as the default support option. Signed-off-by: Suanming Mou <suanmingm@mellanox.com> Acked-by: Ori Kam <orika@mellanox.com>
This commit is contained in:
parent
373c6114f5
commit
4acb96fd52
@ -2256,7 +2256,9 @@ mlx5_dev_spawn(struct rte_device *dpdk_dev,
|
||||
tunnel_en = ((dv_attr.tunnel_offloads_caps &
|
||||
MLX5DV_RAW_PACKET_CAP_TUNNELED_OFFLOAD_VXLAN) &&
|
||||
(dv_attr.tunnel_offloads_caps &
|
||||
MLX5DV_RAW_PACKET_CAP_TUNNELED_OFFLOAD_GRE));
|
||||
MLX5DV_RAW_PACKET_CAP_TUNNELED_OFFLOAD_GRE) &&
|
||||
(dv_attr.tunnel_offloads_caps &
|
||||
MLX5DV_RAW_PACKET_CAP_TUNNELED_OFFLOAD_GENEVE));
|
||||
}
|
||||
DRV_LOG(DEBUG, "tunnel offloading is %ssupported",
|
||||
tunnel_en ? "" : "not ");
|
||||
|
@ -127,7 +127,8 @@ mlx5_get_tx_port_offloads(struct rte_eth_dev *dev)
|
||||
offloads |= DEV_TX_OFFLOAD_OUTER_IPV4_CKSUM;
|
||||
if (config->tso)
|
||||
offloads |= (DEV_TX_OFFLOAD_VXLAN_TNL_TSO |
|
||||
DEV_TX_OFFLOAD_GRE_TNL_TSO);
|
||||
DEV_TX_OFFLOAD_GRE_TNL_TSO |
|
||||
DEV_TX_OFFLOAD_GENEVE_TNL_TSO);
|
||||
}
|
||||
return offloads;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user