Skip to content

Commit 5c4aa45

Browse files
Shannon NelsonJeff Kirsher
authored andcommitted
ixgbe: remove unneeded ipsec state free callback
With commit 7f05b46 ("xfrm: check for xdo_dev_state_free") we no longer need to add an empty callback function to the driver, so now let's remove the useless code. Signed-off-by: Shannon Nelson <[email protected]> Tested-by: Andrew Bowers <[email protected]> Signed-off-by: Jeff Kirsher <[email protected]>
1 parent 0ae418e commit 5c4aa45

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -724,23 +724,10 @@ static bool ixgbe_ipsec_offload_ok(struct sk_buff *skb, struct xfrm_state *xs)
724724
return true;
725725
}
726726

727-
/**
728-
* ixgbe_ipsec_free - called by xfrm garbage collections
729-
* @xs: pointer to transformer state struct
730-
*
731-
* We don't have any garbage to collect, so we shouldn't bother
732-
* implementing this function, but the XFRM code doesn't check for
733-
* existence before calling the API callback.
734-
**/
735-
static void ixgbe_ipsec_free(struct xfrm_state *xs)
736-
{
737-
}
738-
739727
static const struct xfrmdev_ops ixgbe_xfrmdev_ops = {
740728
.xdo_dev_state_add = ixgbe_ipsec_add_sa,
741729
.xdo_dev_state_delete = ixgbe_ipsec_del_sa,
742730
.xdo_dev_offload_ok = ixgbe_ipsec_offload_ok,
743-
.xdo_dev_state_free = ixgbe_ipsec_free,
744731
};
745732

746733
/**

0 commit comments

Comments
 (0)