net/tls: rename tls_device to tls_toe_device
Rename struct tls_device to struct tls_toe_device to avoid confusion with normal, non-TOE offload. No functional changes. Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com> Reviewed-by: John Hurley <john.hurley@netronome.com> Reviewed-by: Simon Horman <simon.horman@netronome.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
25a3cd8189
commit
f21912edd1
@@ -36,7 +36,7 @@
|
||||
|
||||
struct sock;
|
||||
|
||||
#define TLS_DEVICE_NAME_MAX 32
|
||||
#define TLS_TOE_DEVICE_NAME_MAX 32
|
||||
|
||||
/*
|
||||
* This structure defines the routines for Inline TLS driver.
|
||||
@@ -45,29 +45,29 @@ struct sock;
|
||||
*
|
||||
* @name: Its the name of registered Inline tls device
|
||||
* @dev_list: Inline tls device list
|
||||
* int (*feature)(struct tls_device *device);
|
||||
* int (*feature)(struct tls_toe_device *device);
|
||||
* Called to return Inline TLS driver capability
|
||||
*
|
||||
* int (*hash)(struct tls_device *device, struct sock *sk);
|
||||
* int (*hash)(struct tls_toe_device *device, struct sock *sk);
|
||||
* This function sets Inline driver for listen and program
|
||||
* device specific functioanlity as required
|
||||
*
|
||||
* void (*unhash)(struct tls_device *device, struct sock *sk);
|
||||
* void (*unhash)(struct tls_toe_device *device, struct sock *sk);
|
||||
* This function cleans listen state set by Inline TLS driver
|
||||
*
|
||||
* void (*release)(struct kref *kref);
|
||||
* Release the registered device and allocated resources
|
||||
* @kref: Number of reference to tls_device
|
||||
* @kref: Number of reference to tls_toe_device
|
||||
*/
|
||||
struct tls_device {
|
||||
char name[TLS_DEVICE_NAME_MAX];
|
||||
struct tls_toe_device {
|
||||
char name[TLS_TOE_DEVICE_NAME_MAX];
|
||||
struct list_head dev_list;
|
||||
int (*feature)(struct tls_device *device);
|
||||
int (*hash)(struct tls_device *device, struct sock *sk);
|
||||
void (*unhash)(struct tls_device *device, struct sock *sk);
|
||||
int (*feature)(struct tls_toe_device *device);
|
||||
int (*hash)(struct tls_toe_device *device, struct sock *sk);
|
||||
void (*unhash)(struct tls_toe_device *device, struct sock *sk);
|
||||
void (*release)(struct kref *kref);
|
||||
struct kref kref;
|
||||
};
|
||||
|
||||
void tls_register_device(struct tls_device *device);
|
||||
void tls_unregister_device(struct tls_device *device);
|
||||
void tls_toe_register_device(struct tls_toe_device *device);
|
||||
void tls_toe_unregister_device(struct tls_toe_device *device);
|
||||
|
Reference in New Issue
Block a user