]> git.baikalelectronics.ru Git - kernel.git/commit
bonding: Fix extraction of ports from the packet headers
authorMoshe Tal <moshet@nvidia.com>
Sun, 16 Jan 2022 17:39:29 +0000 (19:39 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 16 Jan 2022 23:38:59 +0000 (23:38 +0000)
commitd4ac62fbf33772567f73563b9cb81e70b2b1e540
tree5e0c19aedb3f7560454717d2fff448b12187e735
parent65d4ad791034f24b4c8dac7a5f99e17d6a88f2ce
bonding: Fix extraction of ports from the packet headers

Wrong hash sends single stream to multiple output interfaces.

The offset calculation was relative to skb->head, fix it to be relative
to skb->data.

Fixes: 3050be04211f ("net, bonding: Refactor bond_xmit_hash for use with
xdp_buff")
Reviewed-by: Jussi Maki <joamaki@gmail.com>
Reviewed-by: Saeed Mahameed <saeedm@nvidia.com>
Reviewed-by: Gal Pressman <gal@nvidia.com>
Signed-off-by: Moshe Tal <moshet@nvidia.com>
Acked-by: Jay Vosburgh <jay.vosburgh@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_main.c