Skip to content

Commit

Permalink
Add patches for compatility with 3.19 upstream kernel from Vadim Fedo…
Browse files Browse the repository at this point in the history
…renko
  • Loading branch information
pavel-odintsov committed Apr 22, 2015
1 parent 1c7bcad commit 43540cc
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions ixgbe-3.23.2.1/src/ixgbe_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -8945,7 +8945,11 @@ static int ixgbe_set_features(struct net_device *netdev,
#ifdef USE_CONST_DEV_UC_CHAR
static int ixgbe_ndo_fdb_add(struct ndmsg *ndm, struct nlattr *tb[],
struct net_device *dev,
#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 19, 0)
const unsigned char *addr, u16 vid,
#else
const unsigned char *addr,
#endif
u16 flags)
#else
static int ixgbe_ndo_fdb_add(struct ndmsg *ndm,
Expand All @@ -8961,7 +8965,11 @@ static int ixgbe_ndo_fdb_add(struct ndmsg *ndm,
}

#ifdef USE_CONST_DEV_UC_CHAR
#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 19, 0)
return ndo_dflt_fdb_add(ndm, tb, dev, addr, vid, flags);
#else
return ndo_dflt_fdb_add(ndm, tb, dev, addr, flags);
#endif
#else
return ndo_dflt_fdb_add(ndm, dev, addr, flags);
#endif
Expand Down Expand Up @@ -9024,7 +9032,11 @@ static int ixgbe_ndo_bridge_getlink(struct sk_buff *skb, u32 pid, u32 seq,

mode = adapter->bridge_mode;

#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 19, 0)
return ndo_dflt_bridge_getlink(skb, pid, seq, dev, mode, 0, 0);
#else
return ndo_dflt_bridge_getlink(skb, pid, seq, dev, mode);
#endif
}
#endif /* HAVE_BRIDGE_ATTRIBS */
#endif /* HAVE_FDB_OPS */
Expand Down

0 comments on commit 43540cc

Please sign in to comment.