Hi Bhanu,

"Bodireddy, Bhanuprakash" <[email protected]> writes:

> Hi,
>
>  
>
> ovs-tcpdump throws the below error when trying to capture packets on one of 
> the
> vhostuserports.
>
>  
>
> $ ovs-tcpdump -i dpdkvhostuser0
>
>    ERROR: Please create an interface called `midpdkvhostuser0`
>
>     See your OS guide for how to do this.
>
>     Ex: ip link add midpdkvhostuser0 type veth peer name midpdkvhostuser02
>
>  
>
> $ ip link add midpdkvhostuser0 type veth peer name midpdkvhostuser02
>
>      Error: argument "midpdkvhostuser0" is wrong: "name" too long
>
>  
>
> To get around this issue, I have to pass  ‘—mirror-to’ option as below.
>
>  
>
> $ ovs-tcpdump -i dpdkvhostuser0 -XX --mirror-to vh0
>
>  
>
> Is this due to the length of the port name?  Would be nice to fix this issue.

Thanks for the detailed write up.

It is related to the mirror port name length.  The mirror port is bound
by IFNAMSIZ restriction, so it must be 15 characters + nul, and
midpdkvhostuser0 would be 16 + nul.  This is a linux specific
restriction, and it won't be changed because it is very much a well
established UAPI (and changing it will have implications on code not
able to deal with larger sized name buffers).

I'm not sure how best to fix it.  My concession was the mirror-to
option.  Perhaps there's a better way?

>  
>
> Bhanuprakash.
_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to