#ifndef TSTAMPING_H #define TSTAMPING_H #include "config.h" #ifdef HAVE_HARDWARE_TIMESTAMPING extern int set_sockopt_hwtimestamp(int sock, const char *dev); #else static inline int set_sockopt_hwtimestamp(int sock, const char *dev) { return -1; } #endif #endif /* TSTAMPING_H */ nz.ch/cgit.cgi/linux/net-next.git/atom/?h=master' type='application/atom+xml'/>
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Borkmann <daniel@iogearbox.net>2016-07-01 00:00:54 +0200
committerDavid S. Miller <davem@davemloft.net>2016-07-01 16:35:56 -0400
commit79c62220d74a4a3f961a2cb7320da09eebf5daf7 (patch)
tree07199e4a0ec954473df885b1a838148816cee741
parent82a31b9231f02d9c1b7b290a46999d517b0d312a (diff)
macsec: set actual real device for xmit when !protect_frames
Avoid recursions of dev_queue_xmit() to the wrong net device when frames are unprotected, since at that time skb->dev still points to our own macsec dev and unlike macsec_encrypt_finish() dev pointer doesn't get updated to real underlying device. Fixes: c09440f7dcb3 ("macsec: introduce IEEE 802.1AE driver") Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Acked-by: Sabrina Dubroca <sd@queasysnail.net> Acked-by: Hannes Frederic Sowa <hannes@stressinduktion.org> Signed-off-by: David S. Miller <davem@davemloft.net>