mirror of
https://github.com/openvswitch/ovs
synced 2025-10-19 14:37:21 +00:00
Patch removes genl, netlink, rtnl compat code and dpif-linux fallback-id compat code. Signed-off-by: Pravin B Shelar <pshelar@nicira.com> Acked-by: Jesse Gross <jesse@nicira.com>
18 lines
448 B
C
18 lines
448 B
C
#include <net/genetlink.h>
|
|
#include <linux/version.h>
|
|
|
|
/* This is analogous to rtnl_notify() but uses genl_sock instead of rtnl.
|
|
*
|
|
* This is not (yet) in any upstream kernel. */
|
|
void genl_notify(struct sk_buff *skb, struct net *net, u32 portid, u32 group,
|
|
struct nlmsghdr *nlh, gfp_t flags)
|
|
{
|
|
struct sock *sk = net->genl_sock;
|
|
int report = 0;
|
|
|
|
if (nlh)
|
|
report = nlmsg_report(nlh);
|
|
|
|
nlmsg_notify(sk, skb, portid, group, report, flags);
|
|
}
|