diff options
author | David S. Miller <davem@davemloft.net> | 2018-03-23 11:24:57 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-03-23 11:31:58 -0400 |
commit | 03fe2debbb2771fb90881e4ce8109b09cf772a5c (patch) | |
tree | fbaf8738296b2e9dcba81c6daef2d515b6c4948c /include | |
parent | 6686c459e1449a3ee5f3fd313b0a559ace7a700e (diff) | |
parent | f36b7534b83357cf52e747905de6d65b4f7c2512 (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Fun set of conflict resolutions here...
For the mac80211 stuff, these were fortunately just parallel
adds. Trivially resolved.
In drivers/net/phy/phy.c we had a bug fix in 'net' that moved the
function phy_disable_interrupts() earlier in the file, whilst in
'net-next' the phy_error() call from this function was removed.
In net/ipv4/xfrm4_policy.c, David Ahern's changes to remove the
'rt_table_id' member of rtable collided with a bug fix in 'net' that
added a new struct member "rt_mtu_locked" which needs to be copied
over here.
The mlxsw driver conflict consisted of net-next separating
the span code and definitions into separate files, whilst
a 'net' bug fix made some changes to that moved code.
The mlx5 infiniband conflict resolution was quite non-trivial,
the RDMA tree's merge commit was used as a guide here, and
here are their notes:
====================
Due to bug fixes found by the syzkaller bot and taken into the for-rc
branch after development for the 4.17 merge window had already started
being taken into the for-next branch, there were fairly non-trivial
merge issues that would need to be resolved between the for-rc branch
and the for-next branch. This merge resolves those conflicts and
provides a unified base upon which ongoing development for 4.17 can
be based.
Conflicts:
drivers/infiniband/hw/mlx5/main.c - Commit 42cea83f9524
(IB/mlx5: Fix cleanup order on unload) added to for-rc and
commit b5ca15ad7e61 (IB/mlx5: Add proper representors support)
add as part of the devel cycle both needed to modify the
init/de-init functions used by mlx5. To support the new
representors, the new functions added by the cleanup patch
needed to be made non-static, and the init/de-init list
added by the representors patch needed to be modified to
match the init/de-init list changes made by the cleanup
patch.
Updates:
drivers/infiniband/hw/mlx5/mlx5_ib.h - Update function
prototypes added by representors patch to reflect new function
names as changed by cleanup patch
drivers/infiniband/hw/mlx5/ib_rep.c - Update init/de-init
stage list to match new order from cleanup patch
====================
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
36 files changed, 250 insertions, 49 deletions
diff --git a/include/asm-generic/pgtable.h b/include/asm-generic/pgtable.h index 2cfa3075d148..bfbb44a5ad38 100644 --- a/include/asm-generic/pgtable.h +++ b/include/asm-generic/pgtable.h | |||
@@ -983,6 +983,8 @@ int pud_set_huge(pud_t *pud, phys_addr_t addr, pgprot_t prot); | |||
983 | int pmd_set_huge(pmd_t *pmd, phys_addr_t addr, pgprot_t prot); | 983 | int pmd_set_huge(pmd_t *pmd, phys_addr_t addr, pgprot_t prot); |
984 | int pud_clear_huge(pud_t *pud); | 984 | int pud_clear_huge(pud_t *pud); |
985 | int pmd_clear_huge(pmd_t *pmd); | 985 | int pmd_clear_huge(pmd_t *pmd); |
986 | int pud_free_pmd_page(pud_t *pud); | ||
987 | int pmd_free_pte_page(pmd_t *pmd); | ||
986 | #else /* !CONFIG_HAVE_ARCH_HUGE_VMAP */ | 988 | #else /* !CONFIG_HAVE_ARCH_HUGE_VMAP */ |
987 | static inline int p4d_set_huge(p4d_t *p4d, phys_addr_t addr, pgprot_t prot) | 989 | static inline int p4d_set_huge(p4d_t *p4d, phys_addr_t addr, pgprot_t prot) |
988 | { | 990 | { |
@@ -1008,6 +1010,14 @@ static inline int pmd_clear_huge(pmd_t *pmd) | |||
1008 | { | 1010 | { |
1009 | return 0; | 1011 | return 0; |
1010 | } | 1012 | } |
1013 | static inline int pud_free_pmd_page(pud_t *pud) | ||
1014 | { | ||
1015 | return 0; | ||
1016 | } | ||
1017 | static inline int pmd_free_pte_page(pmd_t *pmd) | ||
1018 | { | ||
1019 | return 0; | ||
1020 | } | ||
1011 | #endif /* CONFIG_HAVE_ARCH_HUGE_VMAP */ | 1021 | #endif /* CONFIG_HAVE_ARCH_HUGE_VMAP */ |
1012 | 1022 | ||
1013 | #ifndef __HAVE_ARCH_FLUSH_PMD_TLB_RANGE | 1023 | #ifndef __HAVE_ARCH_FLUSH_PMD_TLB_RANGE |
diff --git a/include/kvm/arm_vgic.h b/include/kvm/arm_vgic.h index cdbd142ca7f2..02924ae2527e 100644 --- a/include/kvm/arm_vgic.h +++ b/include/kvm/arm_vgic.h | |||
@@ -360,6 +360,7 @@ void kvm_vgic_put(struct kvm_vcpu *vcpu); | |||
360 | bool kvm_vcpu_has_pending_irqs(struct kvm_vcpu *vcpu); | 360 | bool kvm_vcpu_has_pending_irqs(struct kvm_vcpu *vcpu); |
361 | void kvm_vgic_sync_hwstate(struct kvm_vcpu *vcpu); | 361 | void kvm_vgic_sync_hwstate(struct kvm_vcpu *vcpu); |
362 | void kvm_vgic_flush_hwstate(struct kvm_vcpu *vcpu); | 362 | void kvm_vgic_flush_hwstate(struct kvm_vcpu *vcpu); |
363 | void kvm_vgic_reset_mapped_irq(struct kvm_vcpu *vcpu, u32 vintid); | ||
363 | 364 | ||
364 | void vgic_v3_dispatch_sgi(struct kvm_vcpu *vcpu, u64 reg); | 365 | void vgic_v3_dispatch_sgi(struct kvm_vcpu *vcpu, u64 reg); |
365 | 366 | ||
diff --git a/include/linux/cgroup-defs.h b/include/linux/cgroup-defs.h index 9f242b876fde..f8e76d01a5ad 100644 --- a/include/linux/cgroup-defs.h +++ b/include/linux/cgroup-defs.h | |||
@@ -755,13 +755,13 @@ struct sock_cgroup_data { | |||
755 | * updaters and return part of the previous pointer as the prioidx or | 755 | * updaters and return part of the previous pointer as the prioidx or |
756 | * classid. Such races are short-lived and the result isn't critical. | 756 | * classid. Such races are short-lived and the result isn't critical. |
757 | */ | 757 | */ |
758 | static inline u16 sock_cgroup_prioidx(struct sock_cgroup_data *skcd) | 758 | static inline u16 sock_cgroup_prioidx(const struct sock_cgroup_data *skcd) |
759 | { | 759 | { |
760 | /* fallback to 1 which is always the ID of the root cgroup */ | 760 | /* fallback to 1 which is always the ID of the root cgroup */ |
761 | return (skcd->is_data & 1) ? skcd->prioidx : 1; | 761 | return (skcd->is_data & 1) ? skcd->prioidx : 1; |
762 | } | 762 | } |
763 | 763 | ||
764 | static inline u32 sock_cgroup_classid(struct sock_cgroup_data *skcd) | 764 | static inline u32 sock_cgroup_classid(const struct sock_cgroup_data *skcd) |
765 | { | 765 | { |
766 | /* fallback to 0 which is the unconfigured default classid */ | 766 | /* fallback to 0 which is the unconfigured default classid */ |
767 | return (skcd->is_data & 1) ? skcd->classid : 0; | 767 | return (skcd->is_data & 1) ? skcd->classid : 0; |
diff --git a/include/linux/compat.h b/include/linux/compat.h index 8a9643857c4a..16c3027074a2 100644 --- a/include/linux/compat.h +++ b/include/linux/compat.h | |||
@@ -17,6 +17,7 @@ | |||
17 | #include <linux/if.h> | 17 | #include <linux/if.h> |
18 | #include <linux/fs.h> | 18 | #include <linux/fs.h> |
19 | #include <linux/aio_abi.h> /* for aio_context_t */ | 19 | #include <linux/aio_abi.h> /* for aio_context_t */ |
20 | #include <linux/uaccess.h> | ||
20 | #include <linux/unistd.h> | 21 | #include <linux/unistd.h> |
21 | 22 | ||
22 | #include <asm/compat.h> | 23 | #include <asm/compat.h> |
@@ -229,13 +230,13 @@ typedef struct compat_siginfo { | |||
229 | short int _addr_lsb; /* Valid LSB of the reported address. */ | 230 | short int _addr_lsb; /* Valid LSB of the reported address. */ |
230 | /* used when si_code=SEGV_BNDERR */ | 231 | /* used when si_code=SEGV_BNDERR */ |
231 | struct { | 232 | struct { |
232 | short _dummy_bnd; | 233 | compat_uptr_t _dummy_bnd; |
233 | compat_uptr_t _lower; | 234 | compat_uptr_t _lower; |
234 | compat_uptr_t _upper; | 235 | compat_uptr_t _upper; |
235 | } _addr_bnd; | 236 | } _addr_bnd; |
236 | /* used when si_code=SEGV_PKUERR */ | 237 | /* used when si_code=SEGV_PKUERR */ |
237 | struct { | 238 | struct { |
238 | short _dummy_pkey; | 239 | compat_uptr_t _dummy_pkey; |
239 | u32 _pkey; | 240 | u32 _pkey; |
240 | } _addr_pkey; | 241 | } _addr_pkey; |
241 | }; | 242 | }; |
@@ -550,8 +551,29 @@ asmlinkage long compat_sys_settimeofday(struct compat_timeval __user *tv, | |||
550 | asmlinkage long compat_sys_adjtimex(struct compat_timex __user *utp); | 551 | asmlinkage long compat_sys_adjtimex(struct compat_timex __user *utp); |
551 | 552 | ||
552 | extern int get_compat_sigset(sigset_t *set, const compat_sigset_t __user *compat); | 553 | extern int get_compat_sigset(sigset_t *set, const compat_sigset_t __user *compat); |
553 | extern int put_compat_sigset(compat_sigset_t __user *compat, | 554 | |
554 | const sigset_t *set, unsigned int size); | 555 | /* |
556 | * Defined inline such that size can be compile time constant, which avoids | ||
557 | * CONFIG_HARDENED_USERCOPY complaining about copies from task_struct | ||
558 | */ | ||
559 | static inline int | ||
560 | put_compat_sigset(compat_sigset_t __user *compat, const sigset_t *set, | ||
561 | unsigned int size) | ||
562 | { | ||
563 | /* size <= sizeof(compat_sigset_t) <= sizeof(sigset_t) */ | ||
564 | #ifdef __BIG_ENDIAN | ||
565 | compat_sigset_t v; | ||
566 | switch (_NSIG_WORDS) { | ||
567 | case 4: v.sig[7] = (set->sig[3] >> 32); v.sig[6] = set->sig[3]; | ||
568 | case 3: v.sig[5] = (set->sig[2] >> 32); v.sig[4] = set->sig[2]; | ||
569 | case 2: v.sig[3] = (set->sig[1] >> 32); v.sig[2] = set->sig[1]; | ||
570 | case 1: v.sig[1] = (set->sig[0] >> 32); v.sig[0] = set->sig[0]; | ||
571 | } | ||
572 | return copy_to_user(compat, &v, size) ? -EFAULT : 0; | ||
573 | #else | ||
574 | return copy_to_user(compat, set, size) ? -EFAULT : 0; | ||
575 | #endif | ||
576 | } | ||
555 | 577 | ||
556 | asmlinkage long compat_sys_migrate_pages(compat_pid_t pid, | 578 | asmlinkage long compat_sys_migrate_pages(compat_pid_t pid, |
557 | compat_ulong_t maxnode, const compat_ulong_t __user *old_nodes, | 579 | compat_ulong_t maxnode, const compat_ulong_t __user *old_nodes, |
diff --git a/include/linux/fs.h b/include/linux/fs.h index 79c413985305..c6baf767619e 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h | |||
@@ -1317,6 +1317,7 @@ extern int send_sigurg(struct fown_struct *fown); | |||
1317 | #define SB_I_CGROUPWB 0x00000001 /* cgroup-aware writeback enabled */ | 1317 | #define SB_I_CGROUPWB 0x00000001 /* cgroup-aware writeback enabled */ |
1318 | #define SB_I_NOEXEC 0x00000002 /* Ignore executables on this fs */ | 1318 | #define SB_I_NOEXEC 0x00000002 /* Ignore executables on this fs */ |
1319 | #define SB_I_NODEV 0x00000004 /* Ignore devices on this fs */ | 1319 | #define SB_I_NODEV 0x00000004 /* Ignore devices on this fs */ |
1320 | #define SB_I_MULTIROOT 0x00000008 /* Multiple roots to the dentry tree */ | ||
1320 | 1321 | ||
1321 | /* sb->s_iflags to limit user namespace mounts */ | 1322 | /* sb->s_iflags to limit user namespace mounts */ |
1322 | #define SB_I_USERNS_VISIBLE 0x00000010 /* fstype already mounted */ | 1323 | #define SB_I_USERNS_VISIBLE 0x00000010 /* fstype already mounted */ |
diff --git a/include/linux/if_tun.h b/include/linux/if_tun.h index c5b0a75a7812..fd00170b494f 100644 --- a/include/linux/if_tun.h +++ b/include/linux/if_tun.h | |||
@@ -25,6 +25,7 @@ struct ptr_ring *tun_get_tx_ring(struct file *file); | |||
25 | bool tun_is_xdp_buff(void *ptr); | 25 | bool tun_is_xdp_buff(void *ptr); |
26 | void *tun_xdp_to_ptr(void *ptr); | 26 | void *tun_xdp_to_ptr(void *ptr); |
27 | void *tun_ptr_to_xdp(void *ptr); | 27 | void *tun_ptr_to_xdp(void *ptr); |
28 | void tun_ptr_free(void *ptr); | ||
28 | #else | 29 | #else |
29 | #include <linux/err.h> | 30 | #include <linux/err.h> |
30 | #include <linux/errno.h> | 31 | #include <linux/errno.h> |
@@ -50,5 +51,8 @@ static inline void *tun_ptr_to_xdp(void *ptr) | |||
50 | { | 51 | { |
51 | return NULL; | 52 | return NULL; |
52 | } | 53 | } |
54 | static inline void tun_ptr_free(void *ptr) | ||
55 | { | ||
56 | } | ||
53 | #endif /* CONFIG_TUN */ | 57 | #endif /* CONFIG_TUN */ |
54 | #endif /* __IF_TUN_H */ | 58 | #endif /* __IF_TUN_H */ |
diff --git a/include/linux/if_vlan.h b/include/linux/if_vlan.h index 5e6a2d4dc366..c4a1cff9c768 100644 --- a/include/linux/if_vlan.h +++ b/include/linux/if_vlan.h | |||
@@ -300,30 +300,34 @@ static inline bool vlan_hw_offload_capable(netdev_features_t features, | |||
300 | } | 300 | } |
301 | 301 | ||
302 | /** | 302 | /** |
303 | * __vlan_insert_tag - regular VLAN tag inserting | 303 | * __vlan_insert_inner_tag - inner VLAN tag inserting |
304 | * @skb: skbuff to tag | 304 | * @skb: skbuff to tag |
305 | * @vlan_proto: VLAN encapsulation protocol | 305 | * @vlan_proto: VLAN encapsulation protocol |
306 | * @vlan_tci: VLAN TCI to insert | 306 | * @vlan_tci: VLAN TCI to insert |
307 | * @mac_len: MAC header length including outer vlan headers | ||
307 | * | 308 | * |
308 | * Inserts the VLAN tag into @skb as part of the payload | 309 | * Inserts the VLAN tag into @skb as part of the payload at offset mac_len |
309 | * Returns error if skb_cow_head failes. | 310 | * Returns error if skb_cow_head failes. |
310 | * | 311 | * |
311 | * Does not change skb->protocol so this function can be used during receive. | 312 | * Does not change skb->protocol so this function can be used during receive. |
312 | */ | 313 | */ |
313 | static inline int __vlan_insert_tag(struct sk_buff *skb, | 314 | static inline int __vlan_insert_inner_tag(struct sk_buff *skb, |
314 | __be16 vlan_proto, u16 vlan_tci) | 315 | __be16 vlan_proto, u16 vlan_tci, |
316 | unsigned int mac_len) | ||
315 | { | 317 | { |
316 | struct vlan_ethhdr *veth; | 318 | struct vlan_ethhdr *veth; |
317 | 319 | ||
318 | if (skb_cow_head(skb, VLAN_HLEN) < 0) | 320 | if (skb_cow_head(skb, VLAN_HLEN) < 0) |
319 | return -ENOMEM; | 321 | return -ENOMEM; |
320 | 322 | ||
321 | veth = skb_push(skb, VLAN_HLEN); | 323 | skb_push(skb, VLAN_HLEN); |
322 | 324 | ||
323 | /* Move the mac addresses to the beginning of the new header. */ | 325 | /* Move the mac header sans proto to the beginning of the new header. */ |
324 | memmove(skb->data, skb->data + VLAN_HLEN, 2 * ETH_ALEN); | 326 | memmove(skb->data, skb->data + VLAN_HLEN, mac_len - ETH_TLEN); |
325 | skb->mac_header -= VLAN_HLEN; | 327 | skb->mac_header -= VLAN_HLEN; |
326 | 328 | ||
329 | veth = (struct vlan_ethhdr *)(skb->data + mac_len - ETH_HLEN); | ||
330 | |||
327 | /* first, the ethernet type */ | 331 | /* first, the ethernet type */ |
328 | veth->h_vlan_proto = vlan_proto; | 332 | veth->h_vlan_proto = vlan_proto; |
329 | 333 | ||
@@ -334,12 +338,30 @@ static inline int __vlan_insert_tag(struct sk_buff *skb, | |||
334 | } | 338 | } |
335 | 339 | ||
336 | /** | 340 | /** |
337 | * vlan_insert_tag - regular VLAN tag inserting | 341 | * __vlan_insert_tag - regular VLAN tag inserting |
338 | * @skb: skbuff to tag | 342 | * @skb: skbuff to tag |
339 | * @vlan_proto: VLAN encapsulation protocol | 343 | * @vlan_proto: VLAN encapsulation protocol |
340 | * @vlan_tci: VLAN TCI to insert | 344 | * @vlan_tci: VLAN TCI to insert |
341 | * | 345 | * |
342 | * Inserts the VLAN tag into @skb as part of the payload | 346 | * Inserts the VLAN tag into @skb as part of the payload |
347 | * Returns error if skb_cow_head failes. | ||
348 | * | ||
349 | * Does not change skb->protocol so this function can be used during receive. | ||
350 | */ | ||
351 | static inline int __vlan_insert_tag(struct sk_buff *skb, | ||
352 | __be16 vlan_proto, u16 vlan_tci) | ||
353 | { | ||
354 | return __vlan_insert_inner_tag(skb, vlan_proto, vlan_tci, ETH_HLEN); | ||
355 | } | ||
356 | |||
357 | /** | ||
358 | * vlan_insert_inner_tag - inner VLAN tag inserting | ||
359 | * @skb: skbuff to tag | ||
360 | * @vlan_proto: VLAN encapsulation protocol | ||
361 | * @vlan_tci: VLAN TCI to insert | ||
362 | * @mac_len: MAC header length including outer vlan headers | ||
363 | * | ||
364 | * Inserts the VLAN tag into @skb as part of the payload at offset mac_len | ||
343 | * Returns a VLAN tagged skb. If a new skb is created, @skb is freed. | 365 | * Returns a VLAN tagged skb. If a new skb is created, @skb is freed. |
344 | * | 366 | * |
345 | * Following the skb_unshare() example, in case of error, the calling function | 367 | * Following the skb_unshare() example, in case of error, the calling function |
@@ -347,12 +369,14 @@ static inline int __vlan_insert_tag(struct sk_buff *skb, | |||
347 | * | 369 | * |
348 | * Does not change skb->protocol so this function can be used during receive. | 370 | * Does not change skb->protocol so this function can be used during receive. |
349 | */ | 371 | */ |
350 | static inline struct sk_buff *vlan_insert_tag(struct sk_buff *skb, | 372 | static inline struct sk_buff *vlan_insert_inner_tag(struct sk_buff *skb, |
351 | __be16 vlan_proto, u16 vlan_tci) | 373 | __be16 vlan_proto, |
374 | u16 vlan_tci, | ||
375 | unsigned int mac_len) | ||
352 | { | 376 | { |
353 | int err; | 377 | int err; |
354 | 378 | ||
355 | err = __vlan_insert_tag(skb, vlan_proto, vlan_tci); | 379 | err = __vlan_insert_inner_tag(skb, vlan_proto, vlan_tci, mac_len); |
356 | if (err) { | 380 | if (err) { |
357 | dev_kfree_skb_any(skb); | 381 | dev_kfree_skb_any(skb); |
358 | return NULL; | 382 | return NULL; |
@@ -361,6 +385,26 @@ static inline struct sk_buff *vlan_insert_tag(struct sk_buff *skb, | |||
361 | } | 385 | } |
362 | 386 | ||
363 | /** | 387 | /** |
388 | * vlan_insert_tag - regular VLAN tag inserting | ||
389 | * @skb: skbuff to tag | ||
390 | * @vlan_proto: VLAN encapsulation protocol | ||
391 | * @vlan_tci: VLAN TCI to insert | ||
392 | * | ||
393 | * Inserts the VLAN tag into @skb as part of the payload | ||
394 | * Returns a VLAN tagged skb. If a new skb is created, @skb is freed. | ||
395 | * | ||
396 | * Following the skb_unshare() example, in case of error, the calling function | ||
397 | * doesn't have to worry about freeing the original skb. | ||
398 | * | ||
399 | * Does not change skb->protocol so this function can be used during receive. | ||
400 | */ | ||
401 | static inline struct sk_buff *vlan_insert_tag(struct sk_buff *skb, | ||
402 | __be16 vlan_proto, u16 vlan_tci) | ||
403 | { | ||
404 | return vlan_insert_inner_tag(skb, vlan_proto, vlan_tci, ETH_HLEN); | ||
405 | } | ||
406 | |||
407 | /** | ||
364 | * vlan_insert_tag_set_proto - regular VLAN tag inserting | 408 | * vlan_insert_tag_set_proto - regular VLAN tag inserting |
365 | * @skb: skbuff to tag | 409 | * @skb: skbuff to tag |
366 | * @vlan_proto: VLAN encapsulation protocol | 410 | * @vlan_proto: VLAN encapsulation protocol |
diff --git a/include/linux/irqchip/arm-gic-v3.h b/include/linux/irqchip/arm-gic-v3.h index c00c4c33e432..b26eccc78fb1 100644 --- a/include/linux/irqchip/arm-gic-v3.h +++ b/include/linux/irqchip/arm-gic-v3.h | |||
@@ -503,6 +503,7 @@ | |||
503 | 503 | ||
504 | #define ICH_HCR_EN (1 << 0) | 504 | #define ICH_HCR_EN (1 << 0) |
505 | #define ICH_HCR_UIE (1 << 1) | 505 | #define ICH_HCR_UIE (1 << 1) |
506 | #define ICH_HCR_NPIE (1 << 3) | ||
506 | #define ICH_HCR_TC (1 << 10) | 507 | #define ICH_HCR_TC (1 << 10) |
507 | #define ICH_HCR_TALL0 (1 << 11) | 508 | #define ICH_HCR_TALL0 (1 << 11) |
508 | #define ICH_HCR_TALL1 (1 << 12) | 509 | #define ICH_HCR_TALL1 (1 << 12) |
diff --git a/include/linux/irqchip/arm-gic.h b/include/linux/irqchip/arm-gic.h index d3453ee072fc..68d8b1f73682 100644 --- a/include/linux/irqchip/arm-gic.h +++ b/include/linux/irqchip/arm-gic.h | |||
@@ -84,6 +84,7 @@ | |||
84 | 84 | ||
85 | #define GICH_HCR_EN (1 << 0) | 85 | #define GICH_HCR_EN (1 << 0) |
86 | #define GICH_HCR_UIE (1 << 1) | 86 | #define GICH_HCR_UIE (1 << 1) |
87 | #define GICH_HCR_NPIE (1 << 3) | ||
87 | 88 | ||
88 | #define GICH_LR_VIRTUALID (0x3ff << 0) | 89 | #define GICH_LR_VIRTUALID (0x3ff << 0) |
89 | #define GICH_LR_PHYSID_CPUID_SHIFT (10) | 90 | #define GICH_LR_PHYSID_CPUID_SHIFT (10) |
diff --git a/include/linux/memblock.h b/include/linux/memblock.h index 8be5077efb5f..f92ea7783652 100644 --- a/include/linux/memblock.h +++ b/include/linux/memblock.h | |||
@@ -187,7 +187,6 @@ int memblock_search_pfn_nid(unsigned long pfn, unsigned long *start_pfn, | |||
187 | unsigned long *end_pfn); | 187 | unsigned long *end_pfn); |
188 | void __next_mem_pfn_range(int *idx, int nid, unsigned long *out_start_pfn, | 188 | void __next_mem_pfn_range(int *idx, int nid, unsigned long *out_start_pfn, |
189 | unsigned long *out_end_pfn, int *out_nid); | 189 | unsigned long *out_end_pfn, int *out_nid); |
190 | unsigned long memblock_next_valid_pfn(unsigned long pfn, unsigned long max_pfn); | ||
191 | 190 | ||
192 | /** | 191 | /** |
193 | * for_each_mem_pfn_range - early memory pfn range iterator | 192 | * for_each_mem_pfn_range - early memory pfn range iterator |
diff --git a/include/linux/mlx5/driver.h b/include/linux/mlx5/driver.h index 4814cad7456e..cded85ab6fe4 100644 --- a/include/linux/mlx5/driver.h +++ b/include/linux/mlx5/driver.h | |||
@@ -462,8 +462,8 @@ struct mlx5_core_srq { | |||
462 | struct mlx5_core_rsc_common common; /* must be first */ | 462 | struct mlx5_core_rsc_common common; /* must be first */ |
463 | u32 srqn; | 463 | u32 srqn; |
464 | int max; | 464 | int max; |
465 | int max_gs; | 465 | size_t max_gs; |
466 | int max_avail_gather; | 466 | size_t max_avail_gather; |
467 | int wqe_shift; | 467 | int wqe_shift; |
468 | void (*event) (struct mlx5_core_srq *, enum mlx5_event); | 468 | void (*event) (struct mlx5_core_srq *, enum mlx5_event); |
469 | 469 | ||
diff --git a/include/linux/net.h b/include/linux/net.h index 000d1aada74f..2248a052061d 100644 --- a/include/linux/net.h +++ b/include/linux/net.h | |||
@@ -222,6 +222,7 @@ enum { | |||
222 | int sock_wake_async(struct socket_wq *sk_wq, int how, int band); | 222 | int sock_wake_async(struct socket_wq *sk_wq, int how, int band); |
223 | int sock_register(const struct net_proto_family *fam); | 223 | int sock_register(const struct net_proto_family *fam); |
224 | void sock_unregister(int family); | 224 | void sock_unregister(int family); |
225 | bool sock_is_registered(int family); | ||
225 | int __sock_create(struct net *net, int family, int type, int proto, | 226 | int __sock_create(struct net *net, int family, int type, int proto, |
226 | struct socket **res, int kern); | 227 | struct socket **res, int kern); |
227 | int sock_create(int family, int type, int proto, struct socket **res); | 228 | int sock_create(int family, int type, int proto, struct socket **res); |
diff --git a/include/linux/netfilter/x_tables.h b/include/linux/netfilter/x_tables.h index 1313b35c3ab7..14529511c4b8 100644 --- a/include/linux/netfilter/x_tables.h +++ b/include/linux/netfilter/x_tables.h | |||
@@ -285,6 +285,8 @@ unsigned int *xt_alloc_entry_offsets(unsigned int size); | |||
285 | bool xt_find_jump_offset(const unsigned int *offsets, | 285 | bool xt_find_jump_offset(const unsigned int *offsets, |
286 | unsigned int target, unsigned int size); | 286 | unsigned int target, unsigned int size); |
287 | 287 | ||
288 | int xt_check_proc_name(const char *name, unsigned int size); | ||
289 | |||
288 | int xt_check_match(struct xt_mtchk_param *, unsigned int size, u_int8_t proto, | 290 | int xt_check_match(struct xt_mtchk_param *, unsigned int size, u_int8_t proto, |
289 | bool inv_proto); | 291 | bool inv_proto); |
290 | int xt_check_target(struct xt_tgchk_param *, unsigned int size, u_int8_t proto, | 292 | int xt_check_target(struct xt_tgchk_param *, unsigned int size, u_int8_t proto, |
diff --git a/include/linux/of_pci.h b/include/linux/of_pci.h index 88865e0ebf4d..091033a6b836 100644 --- a/include/linux/of_pci.h +++ b/include/linux/of_pci.h | |||
@@ -13,7 +13,6 @@ struct device_node; | |||
13 | struct device_node *of_pci_find_child_device(struct device_node *parent, | 13 | struct device_node *of_pci_find_child_device(struct device_node *parent, |
14 | unsigned int devfn); | 14 | unsigned int devfn); |
15 | int of_pci_get_devfn(struct device_node *np); | 15 | int of_pci_get_devfn(struct device_node *np); |
16 | int of_irq_parse_and_map_pci(const struct pci_dev *dev, u8 slot, u8 pin); | ||
17 | int of_pci_parse_bus_range(struct device_node *node, struct resource *res); | 16 | int of_pci_parse_bus_range(struct device_node *node, struct resource *res); |
18 | int of_get_pci_domain_nr(struct device_node *node); | 17 | int of_get_pci_domain_nr(struct device_node *node); |
19 | int of_pci_get_max_link_speed(struct device_node *node); | 18 | int of_pci_get_max_link_speed(struct device_node *node); |
@@ -34,12 +33,6 @@ static inline int of_pci_get_devfn(struct device_node *np) | |||
34 | } | 33 | } |
35 | 34 | ||
36 | static inline int | 35 | static inline int |
37 | of_irq_parse_and_map_pci(const struct pci_dev *dev, u8 slot, u8 pin) | ||
38 | { | ||
39 | return 0; | ||
40 | } | ||
41 | |||
42 | static inline int | ||
43 | of_pci_parse_bus_range(struct device_node *node, struct resource *res) | 36 | of_pci_parse_bus_range(struct device_node *node, struct resource *res) |
44 | { | 37 | { |
45 | return -EINVAL; | 38 | return -EINVAL; |
@@ -67,6 +60,16 @@ of_pci_get_max_link_speed(struct device_node *node) | |||
67 | static inline void of_pci_check_probe_only(void) { } | 60 | static inline void of_pci_check_probe_only(void) { } |
68 | #endif | 61 | #endif |
69 | 62 | ||
63 | #if IS_ENABLED(CONFIG_OF_IRQ) | ||
64 | int of_irq_parse_and_map_pci(const struct pci_dev *dev, u8 slot, u8 pin); | ||
65 | #else | ||
66 | static inline int | ||
67 | of_irq_parse_and_map_pci(const struct pci_dev *dev, u8 slot, u8 pin) | ||
68 | { | ||
69 | return 0; | ||
70 | } | ||
71 | #endif | ||
72 | |||
70 | #if defined(CONFIG_OF_ADDRESS) | 73 | #if defined(CONFIG_OF_ADDRESS) |
71 | int of_pci_get_host_bridge_resources(struct device_node *dev, | 74 | int of_pci_get_host_bridge_resources(struct device_node *dev, |
72 | unsigned char busno, unsigned char bus_max, | 75 | unsigned char busno, unsigned char bus_max, |
diff --git a/include/linux/percpu-refcount.h b/include/linux/percpu-refcount.h index 864d167a1073..009cdf3d65b6 100644 --- a/include/linux/percpu-refcount.h +++ b/include/linux/percpu-refcount.h | |||
@@ -30,10 +30,14 @@ | |||
30 | * calls io_destroy() or the process exits. | 30 | * calls io_destroy() or the process exits. |
31 | * | 31 | * |
32 | * In the aio code, kill_ioctx() is called when we wish to destroy a kioctx; it | 32 | * In the aio code, kill_ioctx() is called when we wish to destroy a kioctx; it |
33 | * calls percpu_ref_kill(), then hlist_del_rcu() and synchronize_rcu() to remove | 33 | * removes the kioctx from the proccess's table of kioctxs and kills percpu_ref. |
34 | * the kioctx from the proccess's list of kioctxs - after that, there can't be | 34 | * After that, there can't be any new users of the kioctx (from lookup_ioctx()) |
35 | * any new users of the kioctx (from lookup_ioctx()) and it's then safe to drop | 35 | * and it's then safe to drop the initial ref with percpu_ref_put(). |
36 | * the initial ref with percpu_ref_put(). | 36 | * |
37 | * Note that the free path, free_ioctx(), needs to go through explicit call_rcu() | ||
38 | * to synchronize with RCU protected lookup_ioctx(). percpu_ref operations don't | ||
39 | * imply RCU grace periods of any kind and if a user wants to combine percpu_ref | ||
40 | * with RCU protection, it must be done explicitly. | ||
37 | * | 41 | * |
38 | * Code that does a two stage shutdown like this often needs some kind of | 42 | * Code that does a two stage shutdown like this often needs some kind of |
39 | * explicit synchronization to ensure the initial refcount can only be dropped | 43 | * explicit synchronization to ensure the initial refcount can only be dropped |
@@ -113,8 +117,10 @@ void percpu_ref_reinit(struct percpu_ref *ref); | |||
113 | * Must be used to drop the initial ref on a percpu refcount; must be called | 117 | * Must be used to drop the initial ref on a percpu refcount; must be called |
114 | * precisely once before shutdown. | 118 | * precisely once before shutdown. |
115 | * | 119 | * |
116 | * Puts @ref in non percpu mode, then does a call_rcu() before gathering up the | 120 | * Switches @ref into atomic mode before gathering up the percpu counters |
117 | * percpu counters and dropping the initial ref. | 121 | * and dropping the initial ref. |
122 | * | ||
123 | * There are no implied RCU grace periods between kill and release. | ||
118 | */ | 124 | */ |
119 | static inline void percpu_ref_kill(struct percpu_ref *ref) | 125 | static inline void percpu_ref_kill(struct percpu_ref *ref) |
120 | { | 126 | { |
diff --git a/include/linux/phy.h b/include/linux/phy.h index 5a9b1753fdc5..f0b5870a6d40 100644 --- a/include/linux/phy.h +++ b/include/linux/phy.h | |||
@@ -984,6 +984,10 @@ static inline int genphy_no_soft_reset(struct phy_device *phydev) | |||
984 | { | 984 | { |
985 | return 0; | 985 | return 0; |
986 | } | 986 | } |
987 | int genphy_read_mmd_unsupported(struct phy_device *phdev, int devad, | ||
988 | u16 regnum); | ||
989 | int genphy_write_mmd_unsupported(struct phy_device *phdev, int devnum, | ||
990 | u16 regnum, u16 val); | ||
987 | 991 | ||
988 | /* Clause 45 PHY */ | 992 | /* Clause 45 PHY */ |
989 | int genphy_c45_restart_aneg(struct phy_device *phydev); | 993 | int genphy_c45_restart_aneg(struct phy_device *phydev); |
@@ -1020,7 +1024,6 @@ int phy_driver_register(struct phy_driver *new_driver, struct module *owner); | |||
1020 | int phy_drivers_register(struct phy_driver *new_driver, int n, | 1024 | int phy_drivers_register(struct phy_driver *new_driver, int n, |
1021 | struct module *owner); | 1025 | struct module *owner); |
1022 | void phy_state_machine(struct work_struct *work); | 1026 | void phy_state_machine(struct work_struct *work); |
1023 | void phy_change(struct phy_device *phydev); | ||
1024 | void phy_change_work(struct work_struct *work); | 1027 | void phy_change_work(struct work_struct *work); |
1025 | void phy_mac_interrupt(struct phy_device *phydev); | 1028 | void phy_mac_interrupt(struct phy_device *phydev); |
1026 | void phy_start_machine(struct phy_device *phydev); | 1029 | void phy_start_machine(struct phy_device *phydev); |
diff --git a/include/linux/rhashtable.h b/include/linux/rhashtable.h index c9df2527e0cd..668a21f04b09 100644 --- a/include/linux/rhashtable.h +++ b/include/linux/rhashtable.h | |||
@@ -766,8 +766,10 @@ slow_path: | |||
766 | if (!key || | 766 | if (!key || |
767 | (params.obj_cmpfn ? | 767 | (params.obj_cmpfn ? |
768 | params.obj_cmpfn(&arg, rht_obj(ht, head)) : | 768 | params.obj_cmpfn(&arg, rht_obj(ht, head)) : |
769 | rhashtable_compare(&arg, rht_obj(ht, head)))) | 769 | rhashtable_compare(&arg, rht_obj(ht, head)))) { |
770 | pprev = &head->next; | ||
770 | continue; | 771 | continue; |
772 | } | ||
771 | 773 | ||
772 | data = rht_obj(ht, head); | 774 | data = rht_obj(ht, head); |
773 | 775 | ||
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h index d8340e6e8814..47082f54ec1f 100644 --- a/include/linux/skbuff.h +++ b/include/linux/skbuff.h | |||
@@ -4040,6 +4040,12 @@ static inline bool skb_is_gso_v6(const struct sk_buff *skb) | |||
4040 | return skb_shinfo(skb)->gso_type & SKB_GSO_TCPV6; | 4040 | return skb_shinfo(skb)->gso_type & SKB_GSO_TCPV6; |
4041 | } | 4041 | } |
4042 | 4042 | ||
4043 | /* Note: Should be called only if skb_is_gso(skb) is true */ | ||
4044 | static inline bool skb_is_gso_sctp(const struct sk_buff *skb) | ||
4045 | { | ||
4046 | return skb_shinfo(skb)->gso_type & SKB_GSO_SCTP; | ||
4047 | } | ||
4048 | |||
4043 | static inline void skb_gso_reset(struct sk_buff *skb) | 4049 | static inline void skb_gso_reset(struct sk_buff *skb) |
4044 | { | 4050 | { |
4045 | skb_shinfo(skb)->gso_size = 0; | 4051 | skb_shinfo(skb)->gso_size = 0; |
@@ -4047,6 +4053,22 @@ static inline void skb_gso_reset(struct sk_buff *skb) | |||
4047 | skb_shinfo(skb)->gso_type = 0; | 4053 | skb_shinfo(skb)->gso_type = 0; |
4048 | } | 4054 | } |
4049 | 4055 | ||
4056 | static inline void skb_increase_gso_size(struct skb_shared_info *shinfo, | ||
4057 | u16 increment) | ||
4058 | { | ||
4059 | if (WARN_ON_ONCE(shinfo->gso_size == GSO_BY_FRAGS)) | ||
4060 | return; | ||
4061 | shinfo->gso_size += increment; | ||
4062 | } | ||
4063 | |||
4064 | static inline void skb_decrease_gso_size(struct skb_shared_info *shinfo, | ||
4065 | u16 decrement) | ||
4066 | { | ||
4067 | if (WARN_ON_ONCE(shinfo->gso_size == GSO_BY_FRAGS)) | ||
4068 | return; | ||
4069 | shinfo->gso_size -= decrement; | ||
4070 | } | ||
4071 | |||
4050 | void __skb_warn_lro_forwarding(const struct sk_buff *skb); | 4072 | void __skb_warn_lro_forwarding(const struct sk_buff *skb); |
4051 | 4073 | ||
4052 | static inline bool skb_warn_if_lro(const struct sk_buff *skb) | 4074 | static inline bool skb_warn_if_lro(const struct sk_buff *skb) |
diff --git a/include/linux/tty.h b/include/linux/tty.h index 0a6c71e0ad01..47f8af22f216 100644 --- a/include/linux/tty.h +++ b/include/linux/tty.h | |||
@@ -364,6 +364,7 @@ struct tty_file_private { | |||
364 | #define TTY_PTY_LOCK 16 /* pty private */ | 364 | #define TTY_PTY_LOCK 16 /* pty private */ |
365 | #define TTY_NO_WRITE_SPLIT 17 /* Preserve write boundaries to driver */ | 365 | #define TTY_NO_WRITE_SPLIT 17 /* Preserve write boundaries to driver */ |
366 | #define TTY_HUPPED 18 /* Post driver->hangup() */ | 366 | #define TTY_HUPPED 18 /* Post driver->hangup() */ |
367 | #define TTY_HUPPING 19 /* Hangup in progress */ | ||
367 | #define TTY_LDISC_HALTED 22 /* Line discipline is halted */ | 368 | #define TTY_LDISC_HALTED 22 /* Line discipline is halted */ |
368 | 369 | ||
369 | /* Values for tty->flow_change */ | 370 | /* Values for tty->flow_change */ |
diff --git a/include/linux/u64_stats_sync.h b/include/linux/u64_stats_sync.h index 5bdbd9f49395..07ee0f84a46c 100644 --- a/include/linux/u64_stats_sync.h +++ b/include/linux/u64_stats_sync.h | |||
@@ -90,6 +90,28 @@ static inline void u64_stats_update_end(struct u64_stats_sync *syncp) | |||
90 | #endif | 90 | #endif |
91 | } | 91 | } |
92 | 92 | ||
93 | static inline unsigned long | ||
94 | u64_stats_update_begin_irqsave(struct u64_stats_sync *syncp) | ||
95 | { | ||
96 | unsigned long flags = 0; | ||
97 | |||
98 | #if BITS_PER_LONG==32 && defined(CONFIG_SMP) | ||
99 | local_irq_save(flags); | ||
100 | write_seqcount_begin(&syncp->seq); | ||
101 | #endif | ||
102 | return flags; | ||
103 | } | ||
104 | |||
105 | static inline void | ||
106 | u64_stats_update_end_irqrestore(struct u64_stats_sync *syncp, | ||
107 | unsigned long flags) | ||
108 | { | ||
109 | #if BITS_PER_LONG==32 && defined(CONFIG_SMP) | ||
110 | write_seqcount_end(&syncp->seq); | ||
111 | local_irq_restore(flags); | ||
112 | #endif | ||
113 | } | ||
114 | |||
93 | static inline void u64_stats_update_begin_raw(struct u64_stats_sync *syncp) | 115 | static inline void u64_stats_update_begin_raw(struct u64_stats_sync *syncp) |
94 | { | 116 | { |
95 | #if BITS_PER_LONG==32 && defined(CONFIG_SMP) | 117 | #if BITS_PER_LONG==32 && defined(CONFIG_SMP) |
diff --git a/include/linux/usb/quirks.h b/include/linux/usb/quirks.h index f1fcec2fd5f8..b7a99ce56bc9 100644 --- a/include/linux/usb/quirks.h +++ b/include/linux/usb/quirks.h | |||
@@ -63,4 +63,7 @@ | |||
63 | */ | 63 | */ |
64 | #define USB_QUIRK_DISCONNECT_SUSPEND BIT(12) | 64 | #define USB_QUIRK_DISCONNECT_SUSPEND BIT(12) |
65 | 65 | ||
66 | /* Device needs a pause after every control message. */ | ||
67 | #define USB_QUIRK_DELAY_CTRL_MSG BIT(13) | ||
68 | |||
66 | #endif /* __LINUX_USB_QUIRKS_H */ | 69 | #endif /* __LINUX_USB_QUIRKS_H */ |
diff --git a/include/linux/workqueue.h b/include/linux/workqueue.h index bc0cda180c8b..0c3301421c57 100644 --- a/include/linux/workqueue.h +++ b/include/linux/workqueue.h | |||
@@ -456,7 +456,6 @@ extern int schedule_on_each_cpu(work_func_t func); | |||
456 | int execute_in_process_context(work_func_t fn, struct execute_work *); | 456 | int execute_in_process_context(work_func_t fn, struct execute_work *); |
457 | 457 | ||
458 | extern bool flush_work(struct work_struct *work); | 458 | extern bool flush_work(struct work_struct *work); |
459 | extern bool cancel_work(struct work_struct *work); | ||
460 | extern bool cancel_work_sync(struct work_struct *work); | 459 | extern bool cancel_work_sync(struct work_struct *work); |
461 | 460 | ||
462 | extern bool flush_delayed_work(struct delayed_work *dwork); | 461 | extern bool flush_delayed_work(struct delayed_work *dwork); |
diff --git a/include/net/ip.h b/include/net/ip.h index d53b5a9eae34..36f8f7811093 100644 --- a/include/net/ip.h +++ b/include/net/ip.h | |||
@@ -337,6 +337,13 @@ int ip_decrease_ttl(struct iphdr *iph) | |||
337 | return --iph->ttl; | 337 | return --iph->ttl; |
338 | } | 338 | } |
339 | 339 | ||
340 | static inline int ip_mtu_locked(const struct dst_entry *dst) | ||
341 | { | ||
342 | const struct rtable *rt = (const struct rtable *)dst; | ||
343 | |||
344 | return rt->rt_mtu_locked || dst_metric_locked(dst, RTAX_MTU); | ||
345 | } | ||
346 | |||
340 | static inline | 347 | static inline |
341 | int ip_dont_fragment(const struct sock *sk, const struct dst_entry *dst) | 348 | int ip_dont_fragment(const struct sock *sk, const struct dst_entry *dst) |
342 | { | 349 | { |
@@ -344,7 +351,7 @@ int ip_dont_fragment(const struct sock *sk, const struct dst_entry *dst) | |||
344 | 351 | ||
345 | return pmtudisc == IP_PMTUDISC_DO || | 352 | return pmtudisc == IP_PMTUDISC_DO || |
346 | (pmtudisc == IP_PMTUDISC_WANT && | 353 | (pmtudisc == IP_PMTUDISC_WANT && |
347 | !(dst_metric_locked(dst, RTAX_MTU))); | 354 | !ip_mtu_locked(dst)); |
348 | } | 355 | } |
349 | 356 | ||
350 | static inline bool ip_sk_accept_pmtu(const struct sock *sk) | 357 | static inline bool ip_sk_accept_pmtu(const struct sock *sk) |
@@ -370,7 +377,7 @@ static inline unsigned int ip_dst_mtu_maybe_forward(const struct dst_entry *dst, | |||
370 | struct net *net = dev_net(dst->dev); | 377 | struct net *net = dev_net(dst->dev); |
371 | 378 | ||
372 | if (net->ipv4.sysctl_ip_fwd_use_pmtu || | 379 | if (net->ipv4.sysctl_ip_fwd_use_pmtu || |
373 | dst_metric_locked(dst, RTAX_MTU) || | 380 | ip_mtu_locked(dst) || |
374 | !forwarding) | 381 | !forwarding) |
375 | return dst_mtu(dst); | 382 | return dst_mtu(dst); |
376 | 383 | ||
diff --git a/include/net/ip6_route.h b/include/net/ip6_route.h index ce2abc0ff102..0084013d6bed 100644 --- a/include/net/ip6_route.h +++ b/include/net/ip6_route.h | |||
@@ -183,6 +183,9 @@ void rt6_disable_ip(struct net_device *dev, unsigned long event); | |||
183 | void rt6_sync_down_dev(struct net_device *dev, unsigned long event); | 183 | void rt6_sync_down_dev(struct net_device *dev, unsigned long event); |
184 | void rt6_multipath_rebalance(struct rt6_info *rt); | 184 | void rt6_multipath_rebalance(struct rt6_info *rt); |
185 | 185 | ||
186 | void rt6_uncached_list_add(struct rt6_info *rt); | ||
187 | void rt6_uncached_list_del(struct rt6_info *rt); | ||
188 | |||
186 | static inline const struct rt6_info *skb_rt6_info(const struct sk_buff *skb) | 189 | static inline const struct rt6_info *skb_rt6_info(const struct sk_buff *skb) |
187 | { | 190 | { |
188 | const struct dst_entry *dst = skb_dst(skb); | 191 | const struct dst_entry *dst = skb_dst(skb); |
diff --git a/include/net/ip_fib.h b/include/net/ip_fib.h index 7c7522e8585b..81d0f2107ff1 100644 --- a/include/net/ip_fib.h +++ b/include/net/ip_fib.h | |||
@@ -59,6 +59,7 @@ struct fib_nh_exception { | |||
59 | int fnhe_genid; | 59 | int fnhe_genid; |
60 | __be32 fnhe_daddr; | 60 | __be32 fnhe_daddr; |
61 | u32 fnhe_pmtu; | 61 | u32 fnhe_pmtu; |
62 | bool fnhe_mtu_locked; | ||
62 | __be32 fnhe_gw; | 63 | __be32 fnhe_gw; |
63 | unsigned long fnhe_expires; | 64 | unsigned long fnhe_expires; |
64 | struct rtable __rcu *fnhe_rth_input; | 65 | struct rtable __rcu *fnhe_rth_input; |
diff --git a/include/net/mac80211.h b/include/net/mac80211.h index 2fd59ed3be00..2449982daf75 100644 --- a/include/net/mac80211.h +++ b/include/net/mac80211.h | |||
@@ -2077,6 +2077,9 @@ struct ieee80211_txq { | |||
2077 | * virtual interface might not be given air time for the transmission of | 2077 | * virtual interface might not be given air time for the transmission of |
2078 | * the frame, as it is not synced with the AP/P2P GO yet, and thus the | 2078 | * the frame, as it is not synced with the AP/P2P GO yet, and thus the |
2079 | * deauthentication frame might not be transmitted. | 2079 | * deauthentication frame might not be transmitted. |
2080 | > | ||
2081 | * @IEEE80211_HW_DOESNT_SUPPORT_QOS_NDP: The driver (or firmware) doesn't | ||
2082 | * support QoS NDP for AP probing - that's most likely a driver bug. | ||
2080 | * | 2083 | * |
2081 | * @NUM_IEEE80211_HW_FLAGS: number of hardware flags, used for sizing arrays | 2084 | * @NUM_IEEE80211_HW_FLAGS: number of hardware flags, used for sizing arrays |
2082 | */ | 2085 | */ |
@@ -2122,6 +2125,7 @@ enum ieee80211_hw_flags { | |||
2122 | IEEE80211_HW_SUPPORTS_TX_FRAG, | 2125 | IEEE80211_HW_SUPPORTS_TX_FRAG, |
2123 | IEEE80211_HW_SUPPORTS_TDLS_BUFFER_STA, | 2126 | IEEE80211_HW_SUPPORTS_TDLS_BUFFER_STA, |
2124 | IEEE80211_HW_DEAUTH_NEED_MGD_TX_PREP, | 2127 | IEEE80211_HW_DEAUTH_NEED_MGD_TX_PREP, |
2128 | IEEE80211_HW_DOESNT_SUPPORT_QOS_NDP, | ||
2125 | 2129 | ||
2126 | /* keep last, obviously */ | 2130 | /* keep last, obviously */ |
2127 | NUM_IEEE80211_HW_FLAGS | 2131 | NUM_IEEE80211_HW_FLAGS |
diff --git a/include/net/route.h b/include/net/route.h index 158833ea7988..dbb032d5921b 100644 --- a/include/net/route.h +++ b/include/net/route.h | |||
@@ -63,7 +63,8 @@ struct rtable { | |||
63 | __be32 rt_gateway; | 63 | __be32 rt_gateway; |
64 | 64 | ||
65 | /* Miscellaneous cached information */ | 65 | /* Miscellaneous cached information */ |
66 | u32 rt_pmtu; | 66 | u32 rt_mtu_locked:1, |
67 | rt_pmtu:31; | ||
67 | 68 | ||
68 | struct list_head rt_uncached; | 69 | struct list_head rt_uncached; |
69 | struct uncached_list *rt_uncached_list; | 70 | struct uncached_list *rt_uncached_list; |
@@ -225,6 +226,9 @@ struct in_ifaddr; | |||
225 | void fib_add_ifaddr(struct in_ifaddr *); | 226 | void fib_add_ifaddr(struct in_ifaddr *); |
226 | void fib_del_ifaddr(struct in_ifaddr *, struct in_ifaddr *); | 227 | void fib_del_ifaddr(struct in_ifaddr *, struct in_ifaddr *); |
227 | 228 | ||
229 | void rt_add_uncached_list(struct rtable *rt); | ||
230 | void rt_del_uncached_list(struct rtable *rt); | ||
231 | |||
228 | static inline void ip_rt_put(struct rtable *rt) | 232 | static inline void ip_rt_put(struct rtable *rt) |
229 | { | 233 | { |
230 | /* dst_release() accepts a NULL parameter. | 234 | /* dst_release() accepts a NULL parameter. |
diff --git a/include/net/sch_generic.h b/include/net/sch_generic.h index d4907b584b38..493e311bbe93 100644 --- a/include/net/sch_generic.h +++ b/include/net/sch_generic.h | |||
@@ -824,6 +824,16 @@ static inline void __qdisc_drop(struct sk_buff *skb, struct sk_buff **to_free) | |||
824 | *to_free = skb; | 824 | *to_free = skb; |
825 | } | 825 | } |
826 | 826 | ||
827 | static inline void __qdisc_drop_all(struct sk_buff *skb, | ||
828 | struct sk_buff **to_free) | ||
829 | { | ||
830 | if (skb->prev) | ||
831 | skb->prev->next = *to_free; | ||
832 | else | ||
833 | skb->next = *to_free; | ||
834 | *to_free = skb; | ||
835 | } | ||
836 | |||
827 | static inline unsigned int __qdisc_queue_drop_head(struct Qdisc *sch, | 837 | static inline unsigned int __qdisc_queue_drop_head(struct Qdisc *sch, |
828 | struct qdisc_skb_head *qh, | 838 | struct qdisc_skb_head *qh, |
829 | struct sk_buff **to_free) | 839 | struct sk_buff **to_free) |
@@ -956,6 +966,15 @@ static inline int qdisc_drop(struct sk_buff *skb, struct Qdisc *sch, | |||
956 | return NET_XMIT_DROP; | 966 | return NET_XMIT_DROP; |
957 | } | 967 | } |
958 | 968 | ||
969 | static inline int qdisc_drop_all(struct sk_buff *skb, struct Qdisc *sch, | ||
970 | struct sk_buff **to_free) | ||
971 | { | ||
972 | __qdisc_drop_all(skb, to_free); | ||
973 | qdisc_qstats_drop(sch); | ||
974 | |||
975 | return NET_XMIT_DROP; | ||
976 | } | ||
977 | |||
959 | /* Length to Time (L2T) lookup in a qdisc_rate_table, to determine how | 978 | /* Length to Time (L2T) lookup in a qdisc_rate_table, to determine how |
960 | long it will take to send a packet given its size. | 979 | long it will take to send a packet given its size. |
961 | */ | 980 | */ |
diff --git a/include/net/sock.h b/include/net/sock.h index b7c75e024e37..709311132d4c 100644 --- a/include/net/sock.h +++ b/include/net/sock.h | |||
@@ -1138,6 +1138,7 @@ struct proto { | |||
1138 | 1138 | ||
1139 | int proto_register(struct proto *prot, int alloc_slab); | 1139 | int proto_register(struct proto *prot, int alloc_slab); |
1140 | void proto_unregister(struct proto *prot); | 1140 | void proto_unregister(struct proto *prot); |
1141 | int sock_load_diag_module(int family, int protocol); | ||
1141 | 1142 | ||
1142 | #ifdef SOCK_REFCNT_DEBUG | 1143 | #ifdef SOCK_REFCNT_DEBUG |
1143 | static inline void sk_refcnt_debug_inc(struct sock *sk) | 1144 | static inline void sk_refcnt_debug_inc(struct sock *sk) |
diff --git a/include/rdma/ib_verbs.h b/include/rdma/ib_verbs.h index 73b2387e3f74..ff3ed435701f 100644 --- a/include/rdma/ib_verbs.h +++ b/include/rdma/ib_verbs.h | |||
@@ -1537,10 +1537,6 @@ struct ib_xrcd { | |||
1537 | 1537 | ||
1538 | struct mutex tgt_qp_mutex; | 1538 | struct mutex tgt_qp_mutex; |
1539 | struct list_head tgt_qp_list; | 1539 | struct list_head tgt_qp_list; |
1540 | /* | ||
1541 | * Implementation details of the RDMA core, don't use in drivers: | ||
1542 | */ | ||
1543 | struct rdma_restrack_entry res; | ||
1544 | }; | 1540 | }; |
1545 | 1541 | ||
1546 | struct ib_ah { | 1542 | struct ib_ah { |
diff --git a/include/scsi/scsi_cmnd.h b/include/scsi/scsi_cmnd.h index d8d4a902a88d..2280b2351739 100644 --- a/include/scsi/scsi_cmnd.h +++ b/include/scsi/scsi_cmnd.h | |||
@@ -68,6 +68,9 @@ struct scsi_cmnd { | |||
68 | struct list_head list; /* scsi_cmnd participates in queue lists */ | 68 | struct list_head list; /* scsi_cmnd participates in queue lists */ |
69 | struct list_head eh_entry; /* entry for the host eh_cmd_q */ | 69 | struct list_head eh_entry; /* entry for the host eh_cmd_q */ |
70 | struct delayed_work abort_work; | 70 | struct delayed_work abort_work; |
71 | |||
72 | struct rcu_head rcu; | ||
73 | |||
71 | int eh_eflags; /* Used by error handlr */ | 74 | int eh_eflags; /* Used by error handlr */ |
72 | 75 | ||
73 | /* | 76 | /* |
diff --git a/include/scsi/scsi_host.h b/include/scsi/scsi_host.h index 1a1df0d21ee3..a8b7bf879ced 100644 --- a/include/scsi/scsi_host.h +++ b/include/scsi/scsi_host.h | |||
@@ -571,8 +571,6 @@ struct Scsi_Host { | |||
571 | struct blk_mq_tag_set tag_set; | 571 | struct blk_mq_tag_set tag_set; |
572 | }; | 572 | }; |
573 | 573 | ||
574 | struct rcu_head rcu; | ||
575 | |||
576 | atomic_t host_busy; /* commands actually active on low-level */ | 574 | atomic_t host_busy; /* commands actually active on low-level */ |
577 | atomic_t host_blocked; | 575 | atomic_t host_blocked; |
578 | 576 | ||
diff --git a/include/trace/events/mmc.h b/include/trace/events/mmc.h index 200f731be557..7b706ff21335 100644 --- a/include/trace/events/mmc.h +++ b/include/trace/events/mmc.h | |||
@@ -86,8 +86,8 @@ TRACE_EVENT(mmc_request_start, | |||
86 | __entry->stop_flags, __entry->stop_retries, | 86 | __entry->stop_flags, __entry->stop_retries, |
87 | __entry->sbc_opcode, __entry->sbc_arg, | 87 | __entry->sbc_opcode, __entry->sbc_arg, |
88 | __entry->sbc_flags, __entry->sbc_retries, | 88 | __entry->sbc_flags, __entry->sbc_retries, |
89 | __entry->blocks, __entry->blk_addr, | 89 | __entry->blocks, __entry->blksz, |
90 | __entry->blksz, __entry->data_flags, __entry->tag, | 90 | __entry->blk_addr, __entry->data_flags, __entry->tag, |
91 | __entry->can_retune, __entry->doing_retune, | 91 | __entry->can_retune, __entry->doing_retune, |
92 | __entry->retune_now, __entry->need_retune, | 92 | __entry->retune_now, __entry->need_retune, |
93 | __entry->hold_retune, __entry->retune_period) | 93 | __entry->hold_retune, __entry->retune_period) |
diff --git a/include/uapi/asm-generic/siginfo.h b/include/uapi/asm-generic/siginfo.h index 85dc965afd89..99c902e460c2 100644 --- a/include/uapi/asm-generic/siginfo.h +++ b/include/uapi/asm-generic/siginfo.h | |||
@@ -102,13 +102,13 @@ typedef struct siginfo { | |||
102 | short _addr_lsb; /* LSB of the reported address */ | 102 | short _addr_lsb; /* LSB of the reported address */ |
103 | /* used when si_code=SEGV_BNDERR */ | 103 | /* used when si_code=SEGV_BNDERR */ |
104 | struct { | 104 | struct { |
105 | short _dummy_bnd; | 105 | void *_dummy_bnd; |
106 | void __user *_lower; | 106 | void __user *_lower; |
107 | void __user *_upper; | 107 | void __user *_upper; |
108 | } _addr_bnd; | 108 | } _addr_bnd; |
109 | /* used when si_code=SEGV_PKUERR */ | 109 | /* used when si_code=SEGV_PKUERR */ |
110 | struct { | 110 | struct { |
111 | short _dummy_pkey; | 111 | void *_dummy_pkey; |
112 | __u32 _pkey; | 112 | __u32 _pkey; |
113 | } _addr_pkey; | 113 | } _addr_pkey; |
114 | }; | 114 | }; |
diff --git a/include/uapi/linux/if_ether.h b/include/uapi/linux/if_ether.h index 2e4a6c1accaa..3a45b4ad71a3 100644 --- a/include/uapi/linux/if_ether.h +++ b/include/uapi/linux/if_ether.h | |||
@@ -30,6 +30,7 @@ | |||
30 | */ | 30 | */ |
31 | 31 | ||
32 | #define ETH_ALEN 6 /* Octets in one ethernet addr */ | 32 | #define ETH_ALEN 6 /* Octets in one ethernet addr */ |
33 | #define ETH_TLEN 2 /* Octets in ethernet type field */ | ||
33 | #define ETH_HLEN 14 /* Total octets in header. */ | 34 | #define ETH_HLEN 14 /* Total octets in header. */ |
34 | #define ETH_ZLEN 60 /* Min. octets in frame sans FCS */ | 35 | #define ETH_ZLEN 60 /* Min. octets in frame sans FCS */ |
35 | #define ETH_DATA_LEN 1500 /* Max. octets in payload */ | 36 | #define ETH_DATA_LEN 1500 /* Max. octets in payload */ |
diff --git a/include/uapi/misc/ocxl.h b/include/uapi/misc/ocxl.h index 4b0b0b756f3e..0af83d80fb3e 100644 --- a/include/uapi/misc/ocxl.h +++ b/include/uapi/misc/ocxl.h | |||
@@ -32,6 +32,22 @@ struct ocxl_ioctl_attach { | |||
32 | __u64 reserved3; | 32 | __u64 reserved3; |
33 | }; | 33 | }; |
34 | 34 | ||
35 | struct ocxl_ioctl_metadata { | ||
36 | __u16 version; // struct version, always backwards compatible | ||
37 | |||
38 | // Version 0 fields | ||
39 | __u8 afu_version_major; | ||
40 | __u8 afu_version_minor; | ||
41 | __u32 pasid; // PASID assigned to the current context | ||
42 | |||
43 | __u64 pp_mmio_size; // Per PASID MMIO size | ||
44 | __u64 global_mmio_size; | ||
45 | |||
46 | // End version 0 fields | ||
47 | |||
48 | __u64 reserved[13]; // Total of 16*u64 | ||
49 | }; | ||
50 | |||
35 | struct ocxl_ioctl_irq_fd { | 51 | struct ocxl_ioctl_irq_fd { |
36 | __u64 irq_offset; | 52 | __u64 irq_offset; |
37 | __s32 eventfd; | 53 | __s32 eventfd; |
@@ -45,5 +61,6 @@ struct ocxl_ioctl_irq_fd { | |||
45 | #define OCXL_IOCTL_IRQ_ALLOC _IOR(OCXL_MAGIC, 0x11, __u64) | 61 | #define OCXL_IOCTL_IRQ_ALLOC _IOR(OCXL_MAGIC, 0x11, __u64) |
46 | #define OCXL_IOCTL_IRQ_FREE _IOW(OCXL_MAGIC, 0x12, __u64) | 62 | #define OCXL_IOCTL_IRQ_FREE _IOW(OCXL_MAGIC, 0x12, __u64) |
47 | #define OCXL_IOCTL_IRQ_SET_FD _IOW(OCXL_MAGIC, 0x13, struct ocxl_ioctl_irq_fd) | 63 | #define OCXL_IOCTL_IRQ_SET_FD _IOW(OCXL_MAGIC, 0x13, struct ocxl_ioctl_irq_fd) |
64 | #define OCXL_IOCTL_GET_METADATA _IOR(OCXL_MAGIC, 0x14, struct ocxl_ioctl_metadata) | ||
48 | 65 | ||
49 | #endif /* _UAPI_MISC_OCXL_H */ | 66 | #endif /* _UAPI_MISC_OCXL_H */ |