Skip to content

Commit

Permalink
dp-packet: Use OVS_UNUSED to mark possibly unused parameters.
Browse files Browse the repository at this point in the history
This is the way usually used in OVS.

Signed-off-by: Ben Pfaff <[email protected]>
Acked-by: Darrell Ball <[email protected]>
  • Loading branch information
blp committed Aug 9, 2017
1 parent 5e52540 commit cfc1964
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions lib/dp-packet.h
Original file line number Diff line number Diff line change
Expand Up @@ -615,46 +615,46 @@ dp_packet_rss_invalidate(struct dp_packet *p)
}

static inline bool
dp_packet_ip_checksum_valid(struct dp_packet *p)
dp_packet_ip_checksum_valid(struct dp_packet *p OVS_UNUSED)
{
#ifdef DPDK_NETDEV
return (p->mbuf.ol_flags & PKT_RX_IP_CKSUM_MASK) ==
PKT_RX_IP_CKSUM_GOOD;
#else
return 0 && p;
return false;
#endif
}

static inline bool
dp_packet_ip_checksum_bad(struct dp_packet *p)
dp_packet_ip_checksum_bad(struct dp_packet *p OVS_UNUSED)
{
#ifdef DPDK_NETDEV
return (p->mbuf.ol_flags & PKT_RX_IP_CKSUM_MASK) ==
PKT_RX_IP_CKSUM_BAD;
#else
return 0 && p;
return false;
#endif
}

static inline bool
dp_packet_l4_checksum_valid(struct dp_packet *p)
dp_packet_l4_checksum_valid(struct dp_packet *p OVS_UNUSED)
{
#ifdef DPDK_NETDEV
return (p->mbuf.ol_flags & PKT_RX_L4_CKSUM_MASK) ==
PKT_RX_L4_CKSUM_GOOD;
#else
return 0 && p;
return false;
#endif
}

static inline bool
dp_packet_l4_checksum_bad(struct dp_packet *p)
dp_packet_l4_checksum_bad(struct dp_packet *p OVS_UNUSED)
{
#ifdef DPDK_NETDEV
return (p->mbuf.ol_flags & PKT_RX_L4_CKSUM_MASK) ==
PKT_RX_L4_CKSUM_BAD;
#else
return 0 && p;
return false;
#endif
}

Expand Down

0 comments on commit cfc1964

Please sign in to comment.