Lines Matching refs:front
153 nfp_net_tls_set_ipver_vlan(struct nfp_crypto_req_add_front *front, u8 ipver) in nfp_net_tls_set_ipver_vlan() argument
155 front->ipver_vlan = cpu_to_be16(FIELD_PREP(NFP_NET_TLS_IPVER, ipver) | in nfp_net_tls_set_ipver_vlan()
162 struct nfp_crypto_req_add_front *front) in nfp_net_tls_assign_conn_id() argument
168 len = front->key_len - NFP_NET_TLS_NON_ADDR_KEY_LEN; in nfp_net_tls_assign_conn_id()
170 memcpy(front->l3_addrs, &id, sizeof(id)); in nfp_net_tls_assign_conn_id()
171 memset(front->l3_addrs + sizeof(id), 0, len - sizeof(id)); in nfp_net_tls_assign_conn_id()
180 req->front.key_len += sizeof(__be32) * 2; in nfp_net_tls_set_ipv4()
183 nfp_net_tls_assign_conn_id(nn, &req->front); in nfp_net_tls_set_ipv4()
199 req->front.key_len += sizeof(struct in6_addr) * 2; in nfp_net_tls_set_ipv6()
202 nfp_net_tls_assign_conn_id(nn, &req->front); in nfp_net_tls_set_ipv6()
213 nfp_net_tls_set_l4(struct nfp_crypto_req_add_front *front, in nfp_net_tls_set_l4() argument
219 front->l4_proto = IPPROTO_TCP; in nfp_net_tls_set_l4()
271 struct nfp_crypto_req_add_front *front; in nfp_net_tls_add() local
318 front = (void *)skb->data; in nfp_net_tls_add()
319 front->ep_id = 0; in nfp_net_tls_add()
320 front->key_len = NFP_NET_TLS_NON_ADDR_KEY_LEN; in nfp_net_tls_add()
321 front->opcode = nfp_tls_1_2_dir_to_opcode(direction); in nfp_net_tls_add()
322 memset(front->resv, 0, sizeof(front->resv)); in nfp_net_tls_add()
324 nfp_net_tls_set_ipver_vlan(front, ipv6 ? 6 : 4); in nfp_net_tls_add()
332 nfp_net_tls_set_l4(front, back, sk, direction); in nfp_net_tls_add()