Re: [PATCH net 1/2] net: advertise 'netns local' property via netlink

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Feb 06, 2025 at 05:59:03PM +0100, Eric Dumazet wrote:
> On Thu, Feb 6, 2025 at 5:51 PM Nicolas Dichtel
> > @@ -2229,6 +2231,7 @@ static const struct nla_policy ifla_policy[IFLA_MAX+1] = {
> >         [IFLA_ALLMULTI]         = { .type = NLA_REJECT },
> >         [IFLA_GSO_IPV4_MAX_SIZE]        = NLA_POLICY_MIN(NLA_U32, MAX_TCP_HEADER + 1),
> >         [IFLA_GRO_IPV4_MAX_SIZE]        = { .type = NLA_U32 },
> > +       [IFLA_NETNS_LOCAL]      = { .type = NLA_U8 },
> 
> As this is a read-only attribute, I would suggest NLA_REJECT

And please update the spec:
Documentation/netlink/specs/rt_link.yaml




[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux