On Sun, Nov 11, 2018 at 11:15 PM Anand H. Krishnan
<anandhkrish...@gmail.com> wrote:
>
> Hello,
>
> We are seeing a problem with AF_PACKET when used along with the
> veth interfaces. SCP complains that message authentication code is
> incorrect.
>
> I was browsing the code and I see that veth_xmit calls ____dev_forward_skb
> which does a skb_scrub_packet, which in turn calls the skb destructor 
> function.

Where does it call this?

On the other hand, it is likely that skb_orphan() is called somewhere on the
receive path, which indeed will release the tx_ring slot.

> skb_orphan_frags, called by ____dev_forward_skb, seems to do the right thing,
> but it probably does not get called for packets from AF_PACKET socket, since 
> the
> skb is not a zero copy skb (SKBTX_DEV_ZEROCOPY is not set).

Yes, an skb_copy_ubufs may be needed if the orphan is unavoidable.

Reply via email to