All of lore.kernel.org
 help / color / mirror / Atom feed
* [External] [PATCH] ovs: datapath: clear skb->tstamp in forwarding path
@ 2021-08-17  2:25 范开喜
  2021-08-17 13:36 ` Jakub Kicinski
  0 siblings, 1 reply; 3+ messages in thread
From: 范开喜 @ 2021-08-17  2:25 UTC (permalink / raw)
  To: dev, netdev; +Cc: Cong Wang

fq qdisc requires tstamp to be cleared in the forwarding path. Now ovs
doesn't clear skb->tstamp. We encountered a problem with linux
version 5.4.56 and ovs version 2.14.1, and packets failed to
dequeue from qdisc when fq qdisc was attached to ovs port.

Signed-off-by: kaixi.fan <fankaixi.li@bytedance.com>
Signed-off-by: xiexiaohui <xiexiaohui.xxh@bytedance.com>
Reviewed-by: Cong Wang <cong.wang@bytedance.com>
---
 net/openvswitch/vport.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/net/openvswitch/vport.c b/net/openvswitch/vport.c
index 88deb5b41429..cf2ce5812489 100644
--- a/net/openvswitch/vport.c
+++ b/net/openvswitch/vport.c
@@ -507,6 +507,7 @@ void ovs_vport_send(struct vport *vport, struct
sk_buff *skb, u8 mac_proto)
  }

  skb->dev = vport->dev;
+ skb->tstamp = 0;
  vport->ops->send(skb);
  return;

-- 
2.20.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [External] [PATCH] ovs: datapath: clear skb->tstamp in forwarding path
  2021-08-17  2:25 [External] [PATCH] ovs: datapath: clear skb->tstamp in forwarding path 范开喜
@ 2021-08-17 13:36 ` Jakub Kicinski
  2021-08-18  2:30   ` 范开喜
  0 siblings, 1 reply; 3+ messages in thread
From: Jakub Kicinski @ 2021-08-17 13:36 UTC (permalink / raw)
  To: 范开喜; +Cc: dev, netdev, Cong Wang

On Tue, 17 Aug 2021 10:25:24 +0800 范开喜 wrote:
> fq qdisc requires tstamp to be cleared in the forwarding path. Now ovs
> doesn't clear skb->tstamp. We encountered a problem with linux
> version 5.4.56 and ovs version 2.14.1, and packets failed to
> dequeue from qdisc when fq qdisc was attached to ovs port.
> 
> Signed-off-by: kaixi.fan <fankaixi.li@bytedance.com>
> Signed-off-by: xiexiaohui <xiexiaohui.xxh@bytedance.com>
> Reviewed-by: Cong Wang <cong.wang@bytedance.com>
> ---
>  net/openvswitch/vport.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/net/openvswitch/vport.c b/net/openvswitch/vport.c
> index 88deb5b41429..cf2ce5812489 100644
> --- a/net/openvswitch/vport.c
> +++ b/net/openvswitch/vport.c
> @@ -507,6 +507,7 @@ void ovs_vport_send(struct vport *vport, struct
> sk_buff *skb, u8 mac_proto)
>   }
> 
>   skb->dev = vport->dev;
> + skb->tstamp = 0;
>   vport->ops->send(skb);
>   return;

This patch has been mangled by your email client, please try
git send-email if possible.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [External] [PATCH] ovs: datapath: clear skb->tstamp in forwarding path
  2021-08-17 13:36 ` Jakub Kicinski
@ 2021-08-18  2:30   ` 范开喜
  0 siblings, 0 replies; 3+ messages in thread
From: 范开喜 @ 2021-08-18  2:30 UTC (permalink / raw)
  To: Jakub Kicinski; +Cc: dev, netdev, Cong Wang

Jakub Kicinski <kuba@kernel.org> 于2021年8月17日周二 下午9:36写道:
>
> On Tue, 17 Aug 2021 10:25:24 +0800 范开喜 wrote:
> > fq qdisc requires tstamp to be cleared in the forwarding path. Now ovs
> > doesn't clear skb->tstamp. We encountered a problem with linux
> > version 5.4.56 and ovs version 2.14.1, and packets failed to
> > dequeue from qdisc when fq qdisc was attached to ovs port.
> >
> > Signed-off-by: kaixi.fan <fankaixi.li@bytedance.com>
> > Signed-off-by: xiexiaohui <xiexiaohui.xxh@bytedance.com>
> > Reviewed-by: Cong Wang <cong.wang@bytedance.com>
> > ---
> >  net/openvswitch/vport.c | 1 +
> >  1 file changed, 1 insertion(+)
> >
> > diff --git a/net/openvswitch/vport.c b/net/openvswitch/vport.c
> > index 88deb5b41429..cf2ce5812489 100644
> > --- a/net/openvswitch/vport.c
> > +++ b/net/openvswitch/vport.c
> > @@ -507,6 +507,7 @@ void ovs_vport_send(struct vport *vport, struct
> > sk_buff *skb, u8 mac_proto)
> >   }
> >
> >   skb->dev = vport->dev;
> > + skb->tstamp = 0;
> >   vport->ops->send(skb);
> >   return;
>
> This patch has been mangled by your email client, please try
> git send-email if possible.

Sorry. I resend it through git send-email. Thanks.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-08-18  2:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-17  2:25 [External] [PATCH] ovs: datapath: clear skb->tstamp in forwarding path 范开喜
2021-08-17 13:36 ` Jakub Kicinski
2021-08-18  2:30   ` 范开喜

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.