Thread (15 messages) 15 messages, 4 authors, 2021-11-26

Re: [PATCH net-next v2 3/6] net: lan966x: add port module support

flat view

From: Andrew Lunn <andrew@lunn.ch>
Date: 2021-11-25 15:01:19
Also in: lkml, netdev

If I undestood you correctly I have tried to do the following:

struct lan966x_ifh {
    __be32 timestamp;
    __be32 bypass : 1;
    __be32 port : 3;
    ...
};

But then I start to get errors from sparse:

error: invalid bitfield specifier for type restricted __be32.
Maybe look at struct iphdr. It has bitfields for the header length and
the IP version.

    Andrew
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help