Commit 0f3b914c authored by Mahesh Bandewar's avatar Mahesh Bandewar Committed by David S. Miller

bonding: fix warning message

RX queue config for bonding master could be different from its slave
device(s). With the commit 6a9e461f ("bonding: pass link-local
packets to bonding master also."), the packet is reinjected into stack
with skb->dev as bonding master. This potentially triggers the
message:

   "bondX received packet on queue Y, but number of RX queues is Z"

whenever the queue that packet is received on is higher than the
numrxqueues on bonding master (Y > Z).

Fixes: 6a9e461f ("bonding: pass link-local packets to bonding master also.")
Reported-by: default avatarJohn Sperbeck <jsperbeck@google.com>
Signed-off-by: default avatarEric Dumazet <edumazet@google.com>
Signed-off-by: default avatarMahesh Bandewar <maheshb@google.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 2ab2ddd3
...@@ -1187,6 +1187,7 @@ static rx_handler_result_t bond_handle_frame(struct sk_buff **pskb) ...@@ -1187,6 +1187,7 @@ static rx_handler_result_t bond_handle_frame(struct sk_buff **pskb)
if (nskb) { if (nskb) {
nskb->dev = bond->dev; nskb->dev = bond->dev;
nskb->queue_mapping = 0;
netif_rx(nskb); netif_rx(nskb);
} }
return RX_HANDLER_PASS; return RX_HANDLER_PASS;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment