[ovs-git] [openvswitch/ovs] ab53fe: odp-util: Fix Sparse warning in parse_odp_userspac...

GitHub noreply at github.com
Thu Jan 11 20:58:03 UTC 2018


  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: ab53fe8d7a212dae7faad2a333e3a61e923717f3
      https://github.com/openvswitch/ovs/commit/ab53fe8d7a212dae7faad2a333e3a61e923717f3
  Author: Justin Pettit <jpettit at ovn.org>
  Date:   2018-01-11 (Thu, 11 Jan 2018)

  Changed paths:
    M lib/odp-util.c

  Log Message:
  -----------
  odp-util: Fix Sparse warning in parse_odp_userspace_action().

Sparse complains with warning: incorrect type in argument 1 (different
base types) in function parse_odp_userspace_action due to a call to
htonll(rule_cookie).  The variable is read in host-byte order, so it
shouldn't have been declared as big-endian.

Fixes: d39ec23de384 ("ofproto-dpif: Don't slow-path controller actions.")
Reported-by: Ian Stokes <ian.stokes at intel.com>
Signed-off-by: Justin Pettit <jpettit at ovn.org>
Acked-by: Ian Stokes <ian.stokes at intel.com>
Tested-by: Ian Stokes <ian.stokes at intel.com>
Acked-by: Ben Pfaff <blp at ovn.org>




More information about the git mailing list