Revert "RDMA/core: Fix ENODEV error for iWARP test over vlan"
authorLeon Romanovsky <leonro@nvidia.com>
Tue, 12 Nov 2024 08:56:26 +0000 (10:56 +0200)
committerLeon Romanovsky <leon@kernel.org>
Tue, 12 Nov 2024 14:53:11 +0000 (09:53 -0500)
commit6abe2a90808192a5a8b2825293e5f10e80fdea56
treeb27bb8e66169fa6540bd194cb355fd54132fa8aa
parentaceee63a3aba4611f89dfc7e127792f469f45526
Revert "RDMA/core: Fix ENODEV error for iWARP test over vlan"

The citied commit in Fixes line caused to regression for udaddy [1]
application. It doesn't work over VLANs anymore.

Client:
  ifconfig eth2 1.1.1.1
  ip link add link eth2 name p0.3597 type vlan protocol 802.1Q id 3597
  ip link set dev p0.3597 up
  ip addr add 2.2.2.2/16 dev p0.3597
  udaddy -S 847 -C 220 -c 2 -t 0 -s 2.2.2.3 -b 2.2.2.2

Server:
  ifconfig eth2 1.1.1.3
  ip link add link eth2 name p0.3597 type vlan protocol 802.1Q id 3597
  ip link set dev p0.3597 up
  ip addr add 2.2.2.3/16 dev p0.3597
  udaddy -S 847 -C 220 -c 2 -t 0 -b 2.2.2.3

[1] https://github.com/linux-rdma/rdma-core/blob/master/librdmacm/examples/udaddy.c

Fixes: 5069d7e202f6 ("RDMA/core: Fix ENODEV error for iWARP test over vlan")
Reported-by: Leon Romanovsky <leonro@nvidia.com>
Closes: https://lore.kernel.org/all/20241110130746.GA48891@unreal
Link: https://patch.msgid.link/bb9d403419b2b9566da5b8bf0761fa8377927e49.1731401658.git.leon@kernel.org
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
drivers/infiniband/core/addr.c