Thread (14 messages) flat view 14 messages, 2 authors, 2018-06-30

Re: [net-next PATCH v5 4/7] net: Record receive queue number for a connection

From: David Miller <davem@davemloft.net>
Date: 2018-06-29 13:06:43

From: Amritha Nambiar <redacted>
Date: Wed, 27 Jun 2018 15:31:34 -0700
quoted hunk ↗ jump to hunk
@@ -1702,6 +1709,13 @@ static inline int sk_tx_queue_get(const struct sock *sk)
 	return -1;
 }
 
+static inline void sk_rx_queue_set(struct sock *sk, const struct sk_buff *skb)
+{
+#ifdef CONFIG_XPS
+	sk->sk_rx_queue_mapping = skb_get_rx_queue(skb);
+#endif
+}
Maybe add a >= NO_QUEUE_MAPPING check like you did for
skc_tx_queue_mapping.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help