Skip to content

Commit

Permalink
datapath: Fix feature check for HAVE_RXHASH.
Browse files Browse the repository at this point in the history
The check for HAVE_RXHASH use #if rather than #ifdef, which
provokes a warning when it isn't defined.

Signed-off-by: Jesse Gross <[email protected]>
  • Loading branch information
jessegross committed May 2, 2014
1 parent 777af88 commit 73a9f34
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions datapath/linux/compat/include/linux/skbuff.h
Original file line number Diff line number Diff line change
Expand Up @@ -286,10 +286,10 @@ int skb_zerocopy(struct sk_buff *to, struct sk_buff *from, int len,
#ifndef HAVE_SKB_CLEAR_HASH
static inline void skb_clear_hash(struct sk_buff *skb)
{
#if HAVE_RXHASH
#ifdef HAVE_RXHASH
skb->rxhash = 0;
#endif
#if HAVE_L4_RXHASH
#ifdef HAVE_L4_RXHASH
skb->l4_rxhash = 0;
#endif
}
Expand Down
2 changes: 1 addition & 1 deletion debian/changelog
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ openvswitch (2.2.0-1) unstable; urgency=low
- Upon the receipt of a SIGHUP signal, ovs-vswitchd no longer reopens its
log file (it will terminate instead). Please use 'ovs-appctl vlog/reopen'
instead.
- Support for Linux kernels up to 3.13. From Kernel 3.12 onwards OVS uses
- Support for Linux kernels up to 3.14. From Kernel 3.12 onwards OVS uses
tunnel API for GRE and VXLAN.
- Added DPDK support.
- Added support for custom vlog patterns in Python
Expand Down

0 comments on commit 73a9f34

Please sign in to comment.