[ovs-git] [openvswitch/ovs] 7e0f69: lib/tc: Fix sparse warnings.

GitHub noreply at github.com
Sat Mar 31 18:03:02 UTC 2018


  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: 7e0f69b581705064e2fd767426c5227150a31e6f
      https://github.com/openvswitch/ovs/commit/7e0f69b581705064e2fd767426c5227150a31e6f
  Author: Ian Stokes <ian.stokes at intel.com>
  Date:   2018-03-31 (Sat, 31 Mar 2018)

  Changed paths:
    M lib/tc.c

  Log Message:
  -----------
  lib/tc: Fix sparse warnings.

"sparse" complains with the warning 'incorrect type in argument 1
(different base types)' in function nl_parse_flower_ip when parsing a key
flag and in function nl_msg_put_flower_options when writing the key
flag. Fix this by using network byte order when reading and writing key
flags to netlink messages.

Fixes: 83e86606 ("netdev-tc-offloads: Add support for IP fragmentation")
Signed-off-by: Ian Stokes <ian.stokes at intel.com>
Signed-off-by: Ben Pfaff <blp at ovn.org>
Acked-by: Roi Dayan <roid at mellanox.com>




More information about the git mailing list