ipsec.c (82ffd0454bd9bd57780966d47bfd56d579dd4fb3) | ipsec.c (e05b2d141fef22cfac1928cf0eb6890e5dae4216) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* Copyright(c) 2018 Oracle and/or its affiliates. All rights reserved. */ 3 4#include <crypto/aead.h> 5#include <linux/debugfs.h> 6#include <net/xfrm.h> 7 8#include "netdevsim.h" --- 269 unchanged lines hidden (view full) --- 278 279#define NSIM_ESP_FEATURES (NETIF_F_HW_ESP | \ 280 NETIF_F_HW_ESP_TX_CSUM | \ 281 NETIF_F_GSO_ESP) 282 283 ns->netdev->features |= NSIM_ESP_FEATURES; 284 ns->netdev->hw_enc_features |= NSIM_ESP_FEATURES; 285 | 1// SPDX-License-Identifier: GPL-2.0 2/* Copyright(c) 2018 Oracle and/or its affiliates. All rights reserved. */ 3 4#include <crypto/aead.h> 5#include <linux/debugfs.h> 6#include <net/xfrm.h> 7 8#include "netdevsim.h" --- 269 unchanged lines hidden (view full) --- 278 279#define NSIM_ESP_FEATURES (NETIF_F_HW_ESP | \ 280 NETIF_F_HW_ESP_TX_CSUM | \ 281 NETIF_F_GSO_ESP) 282 283 ns->netdev->features |= NSIM_ESP_FEATURES; 284 ns->netdev->hw_enc_features |= NSIM_ESP_FEATURES; 285 |
286 ns->ipsec.pfile = debugfs_create_file("ipsec", 0400, ns->ddir, ns, | 286 ns->ipsec.pfile = debugfs_create_file("ipsec", 0400, 287 ns->nsim_dev_port->ddir, ns, |
287 &ipsec_dbg_fops); 288} 289 290void nsim_ipsec_teardown(struct netdevsim *ns) 291{ 292 struct nsim_ipsec *ipsec = &ns->ipsec; 293 294 if (ipsec->count) 295 netdev_err(ns->netdev, "tearing down IPsec offload with %d SAs left\n", 296 ipsec->count); 297 debugfs_remove_recursive(ipsec->pfile); 298} | 288 &ipsec_dbg_fops); 289} 290 291void nsim_ipsec_teardown(struct netdevsim *ns) 292{ 293 struct nsim_ipsec *ipsec = &ns->ipsec; 294 295 if (ipsec->count) 296 netdev_err(ns->netdev, "tearing down IPsec offload with %d SAs left\n", 297 ipsec->count); 298 debugfs_remove_recursive(ipsec->pfile); 299} |