[PKTGEN]: make get_ipsec_sa() static and non-inline
Non-static inline code usually doesn't makes sense. In this case making is static and non-inline is the correct solution. Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
8aeca8fea5
commit
fea1ab0fcf
@@ -2159,8 +2159,7 @@ static inline int f_pick(struct pktgen_dev *pkt_dev)
|
|||||||
/* If there was already an IPSEC SA, we keep it as is, else
|
/* If there was already an IPSEC SA, we keep it as is, else
|
||||||
* we go look for it ...
|
* we go look for it ...
|
||||||
*/
|
*/
|
||||||
inline
|
static void get_ipsec_sa(struct pktgen_dev *pkt_dev, int flow)
|
||||||
void get_ipsec_sa(struct pktgen_dev *pkt_dev, int flow)
|
|
||||||
{
|
{
|
||||||
struct xfrm_state *x = pkt_dev->flows[flow].x;
|
struct xfrm_state *x = pkt_dev->flows[flow].x;
|
||||||
if (!x) {
|
if (!x) {
|
||||||
|
Reference in New Issue
Block a user