aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi/linux
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2018-06-10 22:25:23 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2018-06-10 22:25:23 -0400
commitf0dc7f9c6dd99891611fca5849cbc4c6965b690e (patch)
treef5ab92b43851aa0aadea1f73170fabc1b2bfeb37 /include/uapi/linux
parent1aaccb5fa0eac996adde53538ca4b87a0b229ab7 (diff)
parent867f816badc01e6da655028810d468c9f935b37c (diff)
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Pull networking fixes from David Miller: 1) Fix several bpfilter/UMH bugs, in particular make the UMH build not depend upon X86 specific Kconfig symbols. From Alexei Starovoitov. 2) Fix handling of modified context pointer in bpf verifier, from Daniel Borkmann. 3) Kill regression in ifdown/ifup sequences for hv_netvsc driver, from Dexuan Cui. 4) When the bonding primary member name changes, we have to re-evaluate the bond->force_primary setting, from Xiangning Yu. 5) Eliminate possible padding beyone end of SKB in cdc_ncm driver, from Bjørn Mork. 6) RX queue length reported for UDP sockets in procfs and socket diag are inaccurate, from Paolo Abeni. 7) Fix br_fdb_find_port() locking, from Petr Machata. 8) Limit sk_rcvlowat values properly in TCP, from Soheil Hassas Yeganeh. * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net: (23 commits) tcp: limit sk_rcvlowat by the maximum receive buffer net: phy: dp83822: use BMCR_ANENABLE instead of BMSR_ANEGCAPABLE for DP83620 socket: close race condition between sock_close() and sockfs_setattr() net: bridge: Fix locking in br_fdb_find_port() udp: fix rx queue len reported by diag and proc interface cdc_ncm: avoid padding beyond end of skb net/sched: act_simple: fix parsing of TCA_DEF_DATA net: fddi: fix a possible null-ptr-deref net: aquantia: fix unsigned numvecs comparison with less than zero net: stmmac: fix build failure due to missing COMMON_CLK dependency bpfilter: fix race in pipe access bpf, xdp: fix crash in xdp_umem_unaccount_pages xsk: Fix umem fill/completion queue mmap on 32-bit tools/bpf: fix selftest get_cgroup_id_user bpfilter: fix OUTPUT_FORMAT umh: fix race condition net: mscc: ocelot: Fix uninitialized error in ocelot_netdevice_event() bonding: re-evaluate force_primary when the primary slave name changes ip_tunnel: Fix name string concatenate in __ip_tunnel_create() hv_netvsc: Fix a network regression after ifdown/ifup ...
Diffstat (limited to 'include/uapi/linux')
-rw-r--r--include/uapi/linux/if_xdp.h4
-rw-r--r--include/uapi/linux/netfilter/nf_tables.h28
2 files changed, 27 insertions, 5 deletions
diff --git a/include/uapi/linux/if_xdp.h b/include/uapi/linux/if_xdp.h
index 1fa0e977ea8d..caed8b1614ff 100644
--- a/include/uapi/linux/if_xdp.h
+++ b/include/uapi/linux/if_xdp.h
@@ -63,8 +63,8 @@ struct xdp_statistics {
63/* Pgoff for mmaping the rings */ 63/* Pgoff for mmaping the rings */
64#define XDP_PGOFF_RX_RING 0 64#define XDP_PGOFF_RX_RING 0
65#define XDP_PGOFF_TX_RING 0x80000000 65#define XDP_PGOFF_TX_RING 0x80000000
66#define XDP_UMEM_PGOFF_FILL_RING 0x100000000 66#define XDP_UMEM_PGOFF_FILL_RING 0x100000000ULL
67#define XDP_UMEM_PGOFF_COMPLETION_RING 0x180000000 67#define XDP_UMEM_PGOFF_COMPLETION_RING 0x180000000ULL
68 68
69/* Rx/Tx descriptor */ 69/* Rx/Tx descriptor */
70struct xdp_desc { 70struct xdp_desc {
diff --git a/include/uapi/linux/netfilter/nf_tables.h b/include/uapi/linux/netfilter/nf_tables.h
index ae00a3c49b8a..c9bf74b94f37 100644
--- a/include/uapi/linux/netfilter/nf_tables.h
+++ b/include/uapi/linux/netfilter/nf_tables.h
@@ -1099,9 +1099,31 @@ enum nft_log_attributes {
1099#define NFTA_LOG_MAX (__NFTA_LOG_MAX - 1) 1099#define NFTA_LOG_MAX (__NFTA_LOG_MAX - 1)
1100 1100
1101/** 1101/**
1102 * LOGLEVEL_AUDIT - a pseudo log level enabling audit logging 1102 * enum nft_log_level - nf_tables log levels
1103 */ 1103 *
1104#define LOGLEVEL_AUDIT 8 1104 * @NFT_LOGLEVEL_EMERG: system is unusable
1105 * @NFT_LOGLEVEL_ALERT: action must be taken immediately
1106 * @NFT_LOGLEVEL_CRIT: critical conditions
1107 * @NFT_LOGLEVEL_ERR: error conditions
1108 * @NFT_LOGLEVEL_WARNING: warning conditions
1109 * @NFT_LOGLEVEL_NOTICE: normal but significant condition
1110 * @NFT_LOGLEVEL_INFO: informational
1111 * @NFT_LOGLEVEL_DEBUG: debug-level messages
1112 * @NFT_LOGLEVEL_AUDIT: enabling audit logging
1113 */
1114enum nft_log_level {
1115 NFT_LOGLEVEL_EMERG,
1116 NFT_LOGLEVEL_ALERT,
1117 NFT_LOGLEVEL_CRIT,
1118 NFT_LOGLEVEL_ERR,
1119 NFT_LOGLEVEL_WARNING,
1120 NFT_LOGLEVEL_NOTICE,
1121 NFT_LOGLEVEL_INFO,
1122 NFT_LOGLEVEL_DEBUG,
1123 NFT_LOGLEVEL_AUDIT,
1124 __NFT_LOGLEVEL_MAX
1125};
1126#define NFT_LOGLEVEL_MAX (__NFT_LOGLEVEL_MAX + 1)
1105 1127
1106/** 1128/**
1107 * enum nft_queue_attributes - nf_tables queue expression netlink attributes 1129 * enum nft_queue_attributes - nf_tables queue expression netlink attributes