Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next
Conflicts: net/netfilter/core.c net/netfilter/nf_tables_netdev.c Resolve two conflicts before pull request for David's net-next tree: 1) Betweenc73c248490("netfilter: nf_tables_netdev: remove redundant ip_hdr assignment") from the net tree and commitddc8b6027a("netfilter: introduce nft_set_pktinfo_{ipv4, ipv6}_validate()"). 2) Betweene8bffe0cf9("net: Add _nf_(un)register_hooks symbols") and Aaron Conole's patches to replace list_head with single linked list. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
This commit is contained in:
@@ -3904,8 +3904,7 @@ static void net_tx_action(struct softirq_action *h)
|
||||
}
|
||||
}
|
||||
|
||||
#if (defined(CONFIG_BRIDGE) || defined(CONFIG_BRIDGE_MODULE)) && \
|
||||
(defined(CONFIG_ATM_LANE) || defined(CONFIG_ATM_LANE_MODULE))
|
||||
#if IS_ENABLED(CONFIG_BRIDGE) && IS_ENABLED(CONFIG_ATM_LANE)
|
||||
/* This hook is defined here for ATM LANE */
|
||||
int (*br_fdb_test_addr_hook)(struct net_device *dev,
|
||||
unsigned char *addr) __read_mostly;
|
||||
@@ -3964,6 +3963,22 @@ sch_handle_ingress(struct sk_buff *skb, struct packet_type **pt_prev, int *ret,
|
||||
return skb;
|
||||
}
|
||||
|
||||
/**
|
||||
* netdev_is_rx_handler_busy - check if receive handler is registered
|
||||
* @dev: device to check
|
||||
*
|
||||
* Check if a receive handler is already registered for a given device.
|
||||
* Return true if there one.
|
||||
*
|
||||
* The caller must hold the rtnl_mutex.
|
||||
*/
|
||||
bool netdev_is_rx_handler_busy(struct net_device *dev)
|
||||
{
|
||||
ASSERT_RTNL();
|
||||
return dev && rtnl_dereference(dev->rx_handler);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(netdev_is_rx_handler_busy);
|
||||
|
||||
/**
|
||||
* netdev_rx_handler_register - register receive handler
|
||||
* @dev: device to register a handler for
|
||||
|
||||
Reference in New Issue
Block a user