mirror of
https://github.com/genodelabs/genode.git
synced 2025-06-04 08:30:54 +00:00
lxip: implement 'rt_genid_ipv4()' and "rt_genid_bump_ipv4()'
This commit is contained in:
parent
7b3a6e6347
commit
59f38fe38c
@ -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)
|
||||||
|
@ -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 **
|
||||||
|
Loading…
x
Reference in New Issue
Block a user