lxip: implement 'rt_genid_ipv4()' and "rt_genid_bump_ipv4()'

This commit is contained in:
Christian Prochaska 2017-02-08 20:29:05 +01:00 committed by Norman Feske
parent 7b3a6e6347
commit 59f38fe38c
2 changed files with 9 additions and 2 deletions

View File

@ -603,8 +603,6 @@ DUMMY(0, raw_seqcount_begin)
DUMMY(0, read_seqcount_retry) DUMMY(0, read_seqcount_retry)
DUMMY(0, reciprocal_scale) DUMMY(0, reciprocal_scale)
DUMMY(0, round_down) DUMMY(0, round_down)
DUMMY(0, rt_genid_bump_ipv4)
DUMMY(0, rt_genid_ipv4)
DUMMY(0, rtmsg_ifinfo_build_skb) DUMMY(0, rtmsg_ifinfo_build_skb)
DUMMY(0, rtmsg_ifinfo_send) DUMMY(0, rtmsg_ifinfo_send)
DUMMY_SKIP(0, sched_annotate_sleep) DUMMY_SKIP(0, sched_annotate_sleep)

View File

@ -151,6 +151,15 @@ int rt_genid(struct net *net)
return -1; return -1;
} }
int rt_genid_ipv4(struct net *net)
{
return atomic_read(&net->ipv4.rt_genid);
}
void rt_genid_bump_ipv4(struct net *net)
{
atomic_inc(&net->ipv4.rt_genid);
}
/********************** /**********************
** linx/rtnetlink.h ** ** linx/rtnetlink.h **