On 22.05.2019 13:15, Ilya Maximets wrote:
> On 22.05.2019 1:12, Ophir Munk wrote:
>>
>>> -----Original Message-----
>>> From: Roi Dayan
>>> Sent: Tuesday, May 21, 2019 7:48 PM
>>> To: Ilya Maximets <i.maxim...@samsung.com>; ovs-dev@openvswitch.org
>>> Cc: Ian Stokes <ian.sto...@intel.com>; Flavio Leitner <f...@sysclose.org>;
>>> Ophir Munk <ophi...@mellanox.com>; Kevin Traynor
>>> <ktray...@redhat.com>; Roni Bar Yanai <ron...@mellanox.com>; Finn
>>> Christensen <f...@napatech.com>; Ben Pfaff <b...@ovn.org>; Simon Horman
>>> <simon.hor...@netronome.com>
>>> Subject: Re: [PATCH v4 1/4] netdev: Dynamic per-port Flow API.
>>>
>>>
>>> Acked-by: Roi Dayan <r...@mellanox.com>
>>
>> Hi Ilya,
>> Can you please send a patch for the detection of netdev vport on top of this 
>> series (as you have already started suggesting in ML discussions)?
>> I will then test it and will make sure it's applicable with this series. I 
>> think it is better to do that before series acceptance.
>> What do you think?
> 
> Hi. 
> Actually patches are already on a list. You only need to add few lines to
> make them allow vxlan for netdev-offload-dpdk.
> 
> Apply following patch sets on top of this one:
> 
> https://patchwork.ozlabs.org/project/openvswitch/list/?series=107534
> https://patchwork.ozlabs.org/project/openvswitch/list/?series=107545
> 
> Change below should than allow you to use dpdk offloading for vxlan ports:
> ---
> diff --git a/lib/netdev-offload-dpdk.c b/lib/netdev-offload-dpdk.c
> index b7b0616ec..32f23c401 100644
> --- a/lib/netdev-offload-dpdk.c
> +++ b/lib/netdev-offload-dpdk.c
> @@ -760,6 +760,10 @@ netdev_offload_dpdk_init_flow_api(struct netdev *netdev)
>          return EOPNOTSUPP;
>      }
>  
> +    if (!strcmp(netdev_get_name(netdev), "vxlan")) {

Sorry,
s/netdev_get_name/netdev_get_type/

> +        return 0;
> +    }
> +
>      return netdev_dpdk_flow_api_supported(netdev) ? 0 : EOPNOTSUPP;
>  }
>  
> ---
> 
> Best regards, Ilya Maximets.
> 
_______________________________________________
dev mailing list
d...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to