diff options
author | David Ahern <dsahern@gmail.com> | 2019-04-23 08:48:09 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-04-23 19:44:18 -0700 |
commit | ecc5663cce8c7d7e4eba32af4e1e3cab296c64b9 (patch) | |
tree | 603721eb5458c0346038f29141f1842db7b31e67 /mm/z3fold.c | |
parent | ffa8ce54be3aaf6b15abae3bbd08282b867d3a4f (diff) | |
download | linux-ecc5663cce8c7d7e4eba32af4e1e3cab296c64b9.tar.gz linux-ecc5663cce8c7d7e4eba32af4e1e3cab296c64b9.tar.bz2 linux-ecc5663cce8c7d7e4eba32af4e1e3cab296c64b9.zip |
net: Change nhc_flags to unsigned char
nhc_flags holds the RTNH_F flags for a given nexthop (fib{6}_nh).
All of the RTNH_F_ flags fit in an unsigned char, and since the API to
userspace (rtnh_flags and lower byte of rtm_flags) is 1 byte it can not
grow. Make nhc_flags in fib_nh_common an unsigned char and shrink the
size of the struct by 8, from 56 to 48 bytes.
Update the flags arguments for up netdevice events and fib_nexthop_info
which determines the RTNH_F flags to return on a dump/event. The RTNH_F
flags are passed in the lower byte of rtm_flags which is an unsigned int
so use a temp variable for the flags to fib_nexthop_info and combine
with rtm_flags in the caller.
Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'mm/z3fold.c')
0 files changed, 0 insertions, 0 deletions