veth.c (7ff57803d24e0cb326251489d70f60462e3e6c04) | veth.c (f534f6581ec084fe94d6759f7672bd009794b07e) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * drivers/net/veth.c 4 * 5 * Copyright (C) 2007 OpenVZ http://openvz.org, SWsoft Inc 6 * 7 * Author: Pavel Emelianov <xemul@openvz.org> 8 * Ethtool interface from: Eric W. Biederman <ebiederm@xmission.com> --- 12 unchanged lines hidden (view full) --- 21#include <net/xdp.h> 22#include <linux/veth.h> 23#include <linux/module.h> 24#include <linux/bpf.h> 25#include <linux/filter.h> 26#include <linux/ptr_ring.h> 27#include <linux/bpf_trace.h> 28#include <linux/net_tstamp.h> | 1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * drivers/net/veth.c 4 * 5 * Copyright (C) 2007 OpenVZ http://openvz.org, SWsoft Inc 6 * 7 * Author: Pavel Emelianov <xemul@openvz.org> 8 * Ethtool interface from: Eric W. Biederman <ebiederm@xmission.com> --- 12 unchanged lines hidden (view full) --- 21#include <net/xdp.h> 22#include <linux/veth.h> 23#include <linux/module.h> 24#include <linux/bpf.h> 25#include <linux/filter.h> 26#include <linux/ptr_ring.h> 27#include <linux/bpf_trace.h> 28#include <linux/net_tstamp.h> |
29#include <net/page_pool/helpers.h> | 29#include <net/page_pool.h> |
30 31#define DRV_NAME "veth" 32#define DRV_VERSION "1.0" 33 34#define VETH_XDP_FLAG BIT(0) 35#define VETH_RING_SIZE 256 36#define VETH_XDP_HEADROOM (XDP_PACKET_HEADROOM + NET_IP_ALIGN) 37 --- 1818 unchanged lines hidden (view full) --- 1856 /* 1857 * create and register peer first 1858 */ 1859 if (data != NULL && data[VETH_INFO_PEER] != NULL) { 1860 struct nlattr *nla_peer; 1861 1862 nla_peer = data[VETH_INFO_PEER]; 1863 ifmp = nla_data(nla_peer); | 30 31#define DRV_NAME "veth" 32#define DRV_VERSION "1.0" 33 34#define VETH_XDP_FLAG BIT(0) 35#define VETH_RING_SIZE 256 36#define VETH_XDP_HEADROOM (XDP_PACKET_HEADROOM + NET_IP_ALIGN) 37 --- 1818 unchanged lines hidden (view full) --- 1856 /* 1857 * create and register peer first 1858 */ 1859 if (data != NULL && data[VETH_INFO_PEER] != NULL) { 1860 struct nlattr *nla_peer; 1861 1862 nla_peer = data[VETH_INFO_PEER]; 1863 ifmp = nla_data(nla_peer); |
1864 err = rtnl_nla_parse_ifla(peer_tb, 1865 nla_data(nla_peer) + sizeof(struct ifinfomsg), 1866 nla_len(nla_peer) - sizeof(struct ifinfomsg), 1867 NULL); | 1864 err = rtnl_nla_parse_ifinfomsg(peer_tb, nla_peer, extack); |
1868 if (err < 0) 1869 return err; 1870 1871 err = veth_validate(peer_tb, NULL, extack); 1872 if (err < 0) 1873 return err; 1874 1875 tbp = peer_tb; --- 183 unchanged lines hidden --- | 1865 if (err < 0) 1866 return err; 1867 1868 err = veth_validate(peer_tb, NULL, extack); 1869 if (err < 0) 1870 return err; 1871 1872 tbp = peer_tb; --- 183 unchanged lines hidden --- |