diff options
| author | Miquel Raynal <miquel.raynal@bootlin.com> | 2025-01-15 19:07:39 +0100 |
|---|---|---|
| committer | Miquel Raynal <miquel.raynal@bootlin.com> | 2025-01-15 19:07:39 +0100 |
| commit | fc4378b2fe8645d310463c2d895abd8173087b95 (patch) | |
| tree | 830c2a033c329668cebc5106332f747eeac82cc5 /include/linux/netdev_features.h | |
| parent | d0b806fc9932a04dae87dbd03a2dea8114ee6996 (diff) | |
| parent | e896c04890aeff2292364c19632fc15d890d436c (diff) | |
Merge tag 'spi-mem-dtr-2' into nand/next
spi: Support DTR in spi-mem
Changes to support DTR with spi-mem.
Diffstat (limited to 'include/linux/netdev_features.h')
| -rw-r--r-- | include/linux/netdev_features.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/netdev_features.h b/include/linux/netdev_features.h index 66e7d26b70a4..11be70a7929f 100644 --- a/include/linux/netdev_features.h +++ b/include/linux/netdev_features.h @@ -253,4 +253,11 @@ static inline int find_next_netdev_feature(u64 feature, unsigned long start) NETIF_F_GSO_UDP_TUNNEL | \ NETIF_F_GSO_UDP_TUNNEL_CSUM) +static inline netdev_features_t netdev_base_features(netdev_features_t features) +{ + features &= ~NETIF_F_ONE_FOR_ALL; + features |= NETIF_F_ALL_FOR_ALL; + return features; +} + #endif /* _LINUX_NETDEV_FEATURES_H */ |
