[XFRM] Statistics: Add outbound-dropping error.
o Increment PolError counter when flow_cache_lookup() returns errored pointer. o Increment NoStates counter at larval-drop. Signed-off-by: Masahide NAKAMURA <nakam@linux-ipv6.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
a067d9ac39
commit
d66e37a99d
@@ -1510,8 +1510,10 @@ restart:
|
|||||||
policy = flow_cache_lookup(fl, dst_orig->ops->family,
|
policy = flow_cache_lookup(fl, dst_orig->ops->family,
|
||||||
dir, xfrm_policy_lookup);
|
dir, xfrm_policy_lookup);
|
||||||
err = PTR_ERR(policy);
|
err = PTR_ERR(policy);
|
||||||
if (IS_ERR(policy))
|
if (IS_ERR(policy)) {
|
||||||
|
XFRM_INC_STATS(LINUX_MIB_XFRMOUTPOLERROR);
|
||||||
goto dropdst;
|
goto dropdst;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!policy)
|
if (!policy)
|
||||||
@@ -1603,6 +1605,7 @@ restart:
|
|||||||
/* EREMOTE tells the caller to generate
|
/* EREMOTE tells the caller to generate
|
||||||
* a one-shot blackhole route.
|
* a one-shot blackhole route.
|
||||||
*/
|
*/
|
||||||
|
XFRM_INC_STATS(LINUX_MIB_XFRMOUTNOSTATES);
|
||||||
xfrm_pol_put(policy);
|
xfrm_pol_put(policy);
|
||||||
return -EREMOTE;
|
return -EREMOTE;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user