Re: [RFC PATCH net-next 3/4] veth: backup classid befor switch net_ns

From
Sergei Shtylyov <hidden>
Date
2014-01-03 10:45:20
Also in
cgroups, lkml
Reply to
Libo Chen, 2014-01-03
Hello.

On 03-01-2014 7:11, Libo Chen wrote:
dev_forward_skb will clear skb->sk, so we need save classid
before that, otherwise the skb can not be under control by
net_cls.
Signed-off-by: Libo Chen <redacted>
---
  drivers/net/veth.c | 7 +++++++
  1 file changed, 7 insertions(+)
quoted hunk ↗ jump to hunk
diff --git a/drivers/net/veth.c b/drivers/net/veth.c
index 2ec2041..ce43a2d 100644
--- a/drivers/net/veth.c
+++ b/drivers/net/veth.c
[...]
quoted hunk ↗ jump to hunk
@@ -123,6 +124,12 @@ static netdev_tx_t veth_xmit(struct sk_buff *skb, struct net_device *dev)
  	    rcv->features & NETIF_F_RXCSUM)
  		skb->ip_summed = CHECKSUM_UNNECESSARY;

+	/**
   Why you're using kernel-doc style comments out of place? The format of multi-line comments  in the networking code is this:

/* bla
 * bla
 */
quoted hunk ↗ jump to hunk
+	 * dev_forward_sbk will clear skb->sk, so save
+	 * skb->sk->sk_classid for Qos
+	 */
+	bk_cls_classid(skb);
+
WBR, Sergei
Thread (3 messages) 3 messages, 2 authors, last reply 2014-01-06
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help