diff options
| author | Xin Xie <xiexinet@gmail.com> | 2026-07-17 22:14:56 +0200 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2026-07-27 17:46:41 -0700 |
| commit | 85abc2db7ba3b5dfd35a037ef3d6135a99b00508 (patch) | |
| tree | f0b5e257a1c587499cf92b6dc8c70fd1e2c464c7 | |
| parent | 852c6a8d7cbe359fff3ee439f4b908231253dc3d (diff) | |
| download | linux-next-85abc2db7ba3b5dfd35a037ef3d6135a99b00508.tar.gz linux-next-85abc2db7ba3b5dfd35a037ef3d6135a99b00508.zip | |
net: hsr: allow PRP RedBox (interlink) creation
With the PRP interlink datapath, duplicate discard and supervision support
in place, a PRP device can act as a RedBox. Remove the rtnetlink rejection
of "type hsr ... interlink <dev> proto 1"; the feature is implemented
unconditionally by the preceding patches.
Signed-off-by: Xin Xie <xiexinet@gmail.com>
Link: https://patch.msgid.link/20260717201457.54-4-xiexinet@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
| -rw-r--r-- | net/hsr/hsr_netlink.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/net/hsr/hsr_netlink.c b/net/hsr/hsr_netlink.c index 8099f2069a74..88940e8014b2 100644 --- a/net/hsr/hsr_netlink.c +++ b/net/hsr/hsr_netlink.c @@ -121,14 +121,8 @@ static int hsr_newlink(struct net_device *dev, } } - if (proto == HSR_PROTOCOL_PRP) { + if (proto == HSR_PROTOCOL_PRP) proto_version = PRP_V1; - if (interlink) { - NL_SET_ERR_MSG_MOD(extack, - "Interlink only works with HSR"); - return -EINVAL; - } - } return hsr_dev_finalize(dev, link, interlink, multicast_spec, proto_version, extack); |
