summaryrefslogtreecommitdiffstats
path: root/net/tipc/monitor.c
diff options
context:
space:
mode:
authorShannon Nelson <shannon.nelson@oracle.com>2017-12-19 15:35:48 -0800
committerSteffen Klassert <steffen.klassert@secunet.com>2017-12-21 08:17:48 +0100
commit92a2320697f7f07f4ee988077820965a0fbd11d0 (patch)
tree37fb92970c16f9294793d156a9806bed015409e1 /net/tipc/monitor.c
parent7f05b467a735aba1476d9ae8e0ae9d9d8e60066c (diff)
downloadlinux-92a2320697f7f07f4ee988077820965a0fbd11d0.tar.bz2
xfrm: check for xdo_dev_ops add and delete
This adds a check for the required add and delete functions up front at registration time to be sure both are defined. Since both the features check and the registration check are looking at the same things, break out the check for both to call. Lastly, for some reason the feature check was setting xfrmdev_ops to NULL if the NETIF_F_HW_ESP bit was missing, which would probably surprise the driver later if the driver turned its NETIF_F_HW_ESP bit back on. We shouldn't be messing with the driver's callback list, so we stop doing that with this patch. Signed-off-by: Shannon Nelson <shannon.nelson@oracle.com> Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Diffstat (limited to 'net/tipc/monitor.c')
0 files changed, 0 insertions, 0 deletions