# Re: \[RFC PATCH iwl-next 2/6\] ip\_tunnel: convert \_\_be16 tunnel flags to bitmaps

- From: Alexander Lobakin \<aleksander.lobakin@intel.com\>
- Date: 2023-06-06 13:19:43 
- List: netdev
- Page: https://ratatoskr.run/netdev/2023/06/11262844
- Thread: https://ratatoskr.run/netdev/2023/06/11262261/t.md

```text
From: Simon Horman <redacted>
Date: Mon, 5 Jun 2023 11:23:34 +0200

> On Thu, Jun 01, 2023 at 03:19:25PM +0200, Marcin Szycik wrote:
>> From: Alexander Lobakin <redacted>

[...]

>>  net/ipv4/fou_bpf.c                            |   2 +-
>>  net/ipv4/gre_demux.c                          |   2 +-
>>  net/ipv4/ip_gre.c                             | 131 +++++++++++-------
>>  net/ipv4/ip_tunnel.c                          |  51 ++++---
>>  net/ipv4/ip_tunnel_core.c                     |  81 +++++++----
>>  net/ipv4/ip_vti.c                             |  31 +++--
>>  net/ipv4/ipip.c                               |  21 ++-
>>  net/ipv4/udp_tunnel_core.c                    |   5 +-
>>  net/ipv6/ip6_gre.c                            |  87 +++++++-----
>>  net/ipv6/ip6_tunnel.c                         |  14 +-
>>  net/ipv6/sit.c                                |   9 +-
>>  net/netfilter/ipvs/ip_vs_core.c               |   6 +-
>>  net/netfilter/ipvs/ip_vs_xmit.c               |  20 +--
>>  net/netfilter/nft_tunnel.c                    |  45 +++---
>>  net/openvswitch/flow_netlink.c                |  55 ++++----
>>  net/psample/psample.c                         |  26 ++--
>>  net/sched/act_tunnel_key.c                    |  39 +++---
>>  net/sched/cls_flower.c                        |  27 ++--
>>  40 files changed, 695 insertions(+), 392 deletions(-)
> 
> nit: this is a rather long patch
I know, but you can't do anything with it. I'm changing the type of the
fields from `__be16` to `unsigned long *` and they're accessed in a good
ton of places around the kernel. This patch is atomic despite being
huge, any separation would break compilation ¯\_(ツ)_/¯

Thanks,
Olek
```
