patches for DPDK stable branches
 help / color / mirror / Atom feed
* [dpdk-stable] [PATCH 18.11] kni: fix ethtool build error on kernel 5.7
@ 2020-08-28 12:03 Kevin Traynor
  2020-08-28 12:39 ` Luca Boccassi
  0 siblings, 1 reply; 3+ messages in thread
From: Kevin Traynor @ 2020-08-28 12:03 UTC (permalink / raw)
  To: stable, ferruh.yigit; +Cc: bluca, Kevin Traynor

From Linux kernel 5.7 onwards, commit
894020fdd88c ("PCI/AER: Rationalize error status register clearing")
replaces pci_cleanup_aer_uncorrect_error_status() with
pci_aer_clear_nonfatal_status().

Add compatability for this as it is used for igb.

Signed-off-by: Kevin Traynor <ktraynor@redhat.com>
---
 kernel/linux/kni/ethtool/igb/kcompat.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/kernel/linux/kni/ethtool/igb/kcompat.h b/kernel/linux/kni/ethtool/igb/kcompat.h
index 611a5b7c49..f74038b3eb 100644
--- a/kernel/linux/kni/ethtool/igb/kcompat.h
+++ b/kernel/linux/kni/ethtool/igb/kcompat.h
@@ -3965,3 +3965,8 @@ skb_set_hash(struct sk_buff *skb, __u32 hash, __always_unused int type)
 #endif
 
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 7, 0))
+#define pci_cleanup_aer_uncorrect_error_status \
+	pci_aer_clear_nonfatal_status
+#endif
+
 #endif /* _KCOMPAT_H_ */
-- 
2.26.2


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [dpdk-stable] [PATCH 18.11] kni: fix ethtool build error on kernel 5.7
  2020-08-28 12:03 [dpdk-stable] [PATCH 18.11] kni: fix ethtool build error on kernel 5.7 Kevin Traynor
@ 2020-08-28 12:39 ` Luca Boccassi
  2020-09-02  8:55   ` Kevin Traynor
  0 siblings, 1 reply; 3+ messages in thread
From: Luca Boccassi @ 2020-08-28 12:39 UTC (permalink / raw)
  To: Kevin Traynor, stable, ferruh.yigit

On Fri, 2020-08-28 at 13:03 +0100, Kevin Traynor wrote:
> From Linux kernel 5.7 onwards, commit
> 894020fdd88c ("PCI/AER: Rationalize error status register clearing")
> replaces pci_cleanup_aer_uncorrect_error_status() with
> pci_aer_clear_nonfatal_status().
> 
> Add compatability for this as it is used for igb.
> 
> Signed-off-by: Kevin Traynor <ktraynor@redhat.com>
> ---
>  kernel/linux/kni/ethtool/igb/kcompat.h | 5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/kernel/linux/kni/ethtool/igb/kcompat.h b/kernel/linux/kni/ethtool/igb/kcompat.h
> index 611a5b7c49..f74038b3eb 100644
> --- a/kernel/linux/kni/ethtool/igb/kcompat.h
> +++ b/kernel/linux/kni/ethtool/igb/kcompat.h
> @@ -3965,3 +3965,8 @@ skb_set_hash(struct sk_buff *skb, __u32 hash, __always_unused int type)
>  #endif
>  
> +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 7, 0))
> +#define pci_cleanup_aer_uncorrect_error_status \
> +	pci_aer_clear_nonfatal_status
> +#endif
> +
>  #endif /* _KCOMPAT_H_ */

Acked-by: Luca Boccassi <bluca@debian.org>

-- 
Kind regards,
Luca Boccassi

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [dpdk-stable] [PATCH 18.11] kni: fix ethtool build error on kernel 5.7
  2020-08-28 12:39 ` Luca Boccassi
@ 2020-09-02  8:55   ` Kevin Traynor
  0 siblings, 0 replies; 3+ messages in thread
From: Kevin Traynor @ 2020-09-02  8:55 UTC (permalink / raw)
  To: Luca Boccassi, stable, ferruh.yigit

On 28/08/2020 13:39, Luca Boccassi wrote:
> On Fri, 2020-08-28 at 13:03 +0100, Kevin Traynor wrote:
>> From Linux kernel 5.7 onwards, commit
>> 894020fdd88c ("PCI/AER: Rationalize error status register clearing")
>> replaces pci_cleanup_aer_uncorrect_error_status() with
>> pci_aer_clear_nonfatal_status().
>>
>> Add compatability for this as it is used for igb.
>>
>> Signed-off-by: Kevin Traynor <ktraynor@redhat.com>
>> ---
>>  kernel/linux/kni/ethtool/igb/kcompat.h | 5 +++++
>>  1 file changed, 5 insertions(+)
>>
>> diff --git a/kernel/linux/kni/ethtool/igb/kcompat.h b/kernel/linux/kni/ethtool/igb/kcompat.h
>> index 611a5b7c49..f74038b3eb 100644
>> --- a/kernel/linux/kni/ethtool/igb/kcompat.h
>> +++ b/kernel/linux/kni/ethtool/igb/kcompat.h
>> @@ -3965,3 +3965,8 @@ skb_set_hash(struct sk_buff *skb, __u32 hash, __always_unused int type)
>>  #endif
>>  
>> +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 7, 0))
>> +#define pci_cleanup_aer_uncorrect_error_status \
>> +	pci_aer_clear_nonfatal_status
>> +#endif
>> +
>>  #endif /* _KCOMPAT_H_ */
> 
> Acked-by: Luca Boccassi <bluca@debian.org>
> 

Thanks Luca, applied.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-09-02  8:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-28 12:03 [dpdk-stable] [PATCH 18.11] kni: fix ethtool build error on kernel 5.7 Kevin Traynor
2020-08-28 12:39 ` Luca Boccassi
2020-09-02  8:55   ` Kevin Traynor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).