File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -865,6 +865,26 @@ struct xfrmdev_ops {
865
865
};
866
866
#endif
867
867
868
+ #if IS_ENABLED (CONFIG_TLS_DEVICE )
869
+ enum tls_offload_ctx_dir {
870
+ TLS_OFFLOAD_CTX_DIR_RX ,
871
+ TLS_OFFLOAD_CTX_DIR_TX ,
872
+ };
873
+
874
+ struct tls_crypto_info ;
875
+ struct tls_context ;
876
+
877
+ struct tlsdev_ops {
878
+ int (* tls_dev_add )(struct net_device * netdev , struct sock * sk ,
879
+ enum tls_offload_ctx_dir direction ,
880
+ struct tls_crypto_info * crypto_info ,
881
+ u32 start_offload_tcp_sn );
882
+ void (* tls_dev_del )(struct net_device * netdev ,
883
+ struct tls_context * ctx ,
884
+ enum tls_offload_ctx_dir direction );
885
+ };
886
+ #endif
887
+
868
888
struct dev_ifalias {
869
889
struct rcu_head rcuhead ;
870
890
char ifalias [];
@@ -1750,6 +1770,10 @@ struct net_device {
1750
1770
const struct xfrmdev_ops * xfrmdev_ops ;
1751
1771
#endif
1752
1772
1773
+ #if IS_ENABLED (CONFIG_TLS_DEVICE )
1774
+ const struct tlsdev_ops * tlsdev_ops ;
1775
+ #endif
1776
+
1753
1777
const struct header_ops * header_ops ;
1754
1778
1755
1779
unsigned int flags ;
You can’t perform that action at this time.
0 commit comments