On 3/19/2018 4:23 AM, Sabrina Dubroca wrote:
> 2018-03-16, 21:07:35 +0530, Atul Gupta wrote:
> [...]
>> +#define SOCK_INLINE (31)
> [...]
>
>> +static inline int csk_flag(const struct sock *sk, enum csk_flags flag)
>> +{
>> + struct chtls_sock *csk = rcu_dereference_sk_user_data(sk);
>> +
>> + if (!sock_flag(sk, SOCK_INLINE))
>> + return 0;
>> + return test_bit(flag, &csk->flags);
>> +}
> Should drivers really start defining their own socket flags?
this is for conn in Inline mode once transitioned to HW, will re-check if can
avoid this. Thanks
>
>
>> +static inline void set_queue(struct sk_buff *skb,
>> + unsigned int queue, const struct sock *sk)
>> +{
>> + skb->queue_mapping = queue;
>> +}
> That's skb_set_queue_mapping(), no need to define your own.
Yes, can avoid re-def. Thank you.
>- [PATCH v11 crypto 01/12] tls: support for Inline tls recor... Atul Gupta
- [PATCH v11 crypto 06/12] crypto: chtls - structure an... Atul Gupta
- Re: [PATCH v11 crypto 06/12] crypto: chtls - stru... Sabrina Dubroca
- Re: [PATCH v11 crypto 06/12] crypto: chtls - ... Atul Gupta
- [PATCH v11 crypto 11/12] crypto: chtls - Register cht... Atul Gupta
- [PATCH v11 crypto 12/12] crypto: chtls - Makefile Kco... Atul Gupta
- [PATCH v11 crypto 09/12] crypto: chtls - Inline TLS r... Atul Gupta
- [PATCH v11 crypto 10/12] crypto: chtls - Inline TLS r... Atul Gupta
- [PATCH v11 crypto 08/12] crypto : chtls - CPL handler... Atul Gupta
- [PATCH v11 crypto 07/12] crypto: chtls - Program the ... Atul Gupta
- [PATCH v11 crypto 05/12] crypto: chcr - Inline TLS Ke... Atul Gupta
- [PATCH v11 crypto 04/12] cxgb4: LLD driver changes to... Atul Gupta
- [PATCH v11 crypto 03/12] cxgb4: Inline TLS FW Interfa... Atul Gupta
- [PATCH v11 crypto 02/12] ethtool: enable Inline TLS i... Atul Gupta
