]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
committerPaolo Pisati <paolo.pisati@canonical.com>
Fri, 28 Jan 2022 10:03:43 +0000 (11:03 +0100)
commit63b97a37f4d920f85154750d9fef4401df764097
treeb8edf29242be79707fd78c585463efa4dbce8227
parent6d398b0f23defc83af4371aed52ded7c715c6901
bonding: Fix extraction of ports from the packet headers

BugLink: https://bugs.launchpad.net/bugs/1959376
commit 429e3d123d9a50cc9882402e40e0ac912d88cfcf upstream.

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: a815bde56b15 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
drivers/net/bonding/bond_main.c