lkml.org 
[lkml]   [2018]   [Oct]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH AUTOSEL 4.14 53/61] bonding: fix warning message
    Date
    From: Mahesh Bandewar <maheshb@google.com>

    [ Upstream commit 0f3b914c9cfcd7bbedd445dc4ac5dd999fa213c2 ]

    RX queue config for bonding master could be different from its slave
    device(s). With the commit 6a9e461f6fe4 ("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: 6a9e461f6fe4 ("bonding: pass link-local packets to bonding master also.")
    Reported-by: John Sperbeck <jsperbeck@google.com>
    Signed-off-by: Eric Dumazet <edumazet@google.com>
    Signed-off-by: Mahesh Bandewar <maheshb@google.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Signed-off-by: Sasha Levin <sashal@kernel.org>
    ---
    drivers/net/bonding/bond_main.c | 1 +
    1 file changed, 1 insertion(+)

    diff --git a/drivers/net/bonding/bond_main.c b/drivers/net/bonding/bond_main.c
    index b880126e616b..cf64a365362b 100644
    --- a/drivers/net/bonding/bond_main.c
    +++ b/drivers/net/bonding/bond_main.c
    @@ -1193,6 +1193,7 @@ static rx_handler_result_t bond_handle_frame(struct sk_buff **pskb)

    if (nskb) {
    nskb->dev = bond->dev;
    + nskb->queue_mapping = 0;
    netif_rx(nskb);
    }
    return RX_HANDLER_PASS;
    --
    2.17.1
    \
     
     \ /
      Last update: 2018-10-16 06:24    [W:4.074 / U:0.016 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site