diff options
author | Vladimir Oltean <vladimir.oltean@nxp.com> | 2021-03-21 23:05:49 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-03-22 12:48:20 -0700 |
commit | abee13f53e889024401de913ff46a6997a866b0c (patch) | |
tree | 01afe954dd773118c29cb62eebec10f3dd707f23 /net/sched/sch_sfq.c | |
parent | 6215afcb9a7e35cef334dc0ae7f998cc72c8465f (diff) | |
download | linux-abee13f53e889024401de913ff46a6997a866b0c.tar.bz2 |
net/sched: cls_flower: use nla_get_be32 for TCA_FLOWER_KEY_FLAGS
The existing code is functionally correct: iproute2 parses the ip_flags
argument for tc-flower and really packs it as big endian into the
TCA_FLOWER_KEY_FLAGS netlink attribute. But there is a problem in the
fact that W=1 builds complain:
net/sched/cls_flower.c:1047:15: warning: cast to restricted __be32
This is because we should use the dedicated helper for obtaining a
__be32 pointer to the netlink attribute, not a u32 one. This ensures
type correctness for be32_to_cpu.
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched/sch_sfq.c')
0 files changed, 0 insertions, 0 deletions