lkml.org 
[lkml]   [2022]   [Nov]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v2 1/1] sctp: sysctl: make extra pointers netns aware
The 11/29/2022 20:48, Jakub Kicinski wrote:
> On Fri, 25 Nov 2022 20:11:27 +0800 Firo Yang wrote:
> > +#define SCTP_RTO_MIN_IDX 1
> > +#define SCTP_RTO_MAX_IDX 2
> > +#define SCTP_PF_RETRANS_IDX 3
> > +#define SCTP_PS_RETRANS_IDX 4
>
> Use these to index the entries, please, like this:
>
> struct bla table[] = {
> [MY_INDEX_ONE] = {
> .whatever = 1,
> },
> [MY_INDEX_TWO] = {
> .fields = 2,
> },
> {
> .there = 3,
> },
> {
> .are = 4,
> },
> };
>
> I think that works even without all entries in the table having the
> index.. ?
>

Cool. I will send a V3.

Thanks,
// Firo

\
 
 \ /
  Last update: 2022-12-01 05:12    [W:0.075 / U:0.028 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site