[ovs-dev] [PATCH v3 2/4] netdev-dpdk: Add flow_api support for netdev gre vports

Maxime Coquelin maxime.coquelin at redhat.com
Wed Oct 13 14:48:35 UTC 2021



On 10/7/21 13:05, Nir Anteby via dev wrote:
> Add the acceptance of GRE devices to netdev_dpdk_flow_api_supported() API,
> to allow offloading of DPDK GRE devices.
> 
> Signed-off-by: Nir Anteby <nanteby at nvidia.com>
> ---
>   lib/netdev-dpdk.c | 9 +++++----
>   1 file changed, 5 insertions(+), 4 deletions(-)
> 
> diff --git a/lib/netdev-dpdk.c b/lib/netdev-dpdk.c
> index ca92c94..a0359ed 100644
> --- a/lib/netdev-dpdk.c
> +++ b/lib/netdev-dpdk.c
> @@ -5215,10 +5215,11 @@ netdev_dpdk_flow_api_supported(struct netdev *netdev)
>       struct netdev_dpdk *dev;
>       bool ret = false;
>   
> -    if (!strcmp(netdev_get_type(netdev), "vxlan") &&
> -        !strcmp(netdev_get_dpif_type(netdev), "netdev")) {
> -            ret = true;
> -            goto out;
> +    if ((!strcmp(netdev_get_type(netdev), "vxlan") ||
> +         !strcmp(netdev_get_type(netdev), "gre")) &&
> +         !strcmp(netdev_get_dpif_type(netdev), "netdev")) {
> +             ret = true;
> +             goto out;
>       }
>   
>       if (!is_dpdk_class(netdev->netdev_class)) {
> 

Reviewed-by: Maxime Coquelin <maxime.coquelin at redhat.com>

Thanks,
Maxime



More information about the dev mailing list