]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
dibs: Move vlan support to dibs_dev_ops
authorAlexandra Winter <wintera@linux.ibm.com>
Thu, 18 Sep 2025 11:04:57 +0000 (13:04 +0200)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 23 Sep 2025 09:13:22 +0000 (11:13 +0200)
commit92a0f7bb081dde6e88368816b8ba51352ddabb1d
tree090f7e99694399afa6ded1d4475c90def0c84434
parent05e68d8dedf34f270cc3769ffe7f0ed413f23add
dibs: Move vlan support to dibs_dev_ops

It can be debated how much benefit definition of vlan ids for dibs devices
brings, as the dmbs are accessible only by a single peer anyhow. But ism
provides vlan support and smcd exploits it, so move it to dibs layer as an
optional feature.

smcd_loopback simply ignores all vlan settings, do the same in
dibs_loopback.

SMC-D and ISM have a method to use the invalid VLAN ID 1FFF
(ISM_RESERVED_VLANID), to indicate that both communication peers support
routable SMC-Dv2. Tolerate it in dibs, but move it to SMC only.

Signed-off-by: Alexandra Winter <wintera@linux.ibm.com>
Link: https://patch.msgid.link/20250918110500.1731261-12-wintera@linux.ibm.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/s390/net/ism_drv.c
include/linux/dibs.h
include/net/smc.h
net/smc/smc_ism.c
net/smc/smc_loopback.c