net/crc: reduce usage of static arrays in net_crc_sse.c
PATCH 1/1 net/crc: reduce usage of static arrays in net_crc_sse.c
Replace the clearing of lower 32 bits of XMM register with blend of zero register.
Replace the clearing of upper 64 bits of XMM register with _mm_move_epi64. Clang is able to optimize away the AND + memory operand with the above sequence, however GCC is still emitting the code for AND with memory operands which is being explicitly eliminated here.
Additionally replace the 48 byte crc_xmm_shift_tab with the contents of shf_table which is 32 bytes, achieving the same functionality.
--- lib/net/net_crc_sse.c | 30 +++++++----------------------- 1 file changed, 7 insertions(+), 23 deletions(-)
lib/net/net_crc_sse.c +7 -23
@@ -96,20 +96,13 @@ crcr32_reduce_128_to_64(__m128i data128, __m128i precomp) static __rte_always_inline uint32_tcrcr32_reduce_64_to_32 (__m128i data64,__m128i precomp) { -static const alignas(16 )uint32_t mask1[4 ] = { -0xffffffff ,0xffffffff ,0x00000000 ,0x00000000 - }; - -static const alignas(16 )uint32_t mask2[4 ] = { -0x00000000 ,0xffffffff ,0xffffffff ,0xffffffff - };__m128i tmp0, tmp1, tmp2; - tmp0 =_mm_and_si128 (data64,_mm_load_si128 ((const __m128i *)mask2)); + tmp0 =_mm_blend_epi16 (_mm_setzero_si128 (), data64,252 ); tmp1 =_mm_clmulepi64_si128 (tmp0, precomp,0x00 ); tmp1 =_mm_xor_si128 (tmp1, tmp0); - tmp1 =_mm_and_si128 (tmp1,_mm_load_si128 ((const __m128i *)mask1)); + tmp1 =_mm_move_epi64 (tmp1); tmp2 =_mm_clmulepi64_si128 (tmp1, precomp,0x10 ); tmp2 =_mm_xor_si128 (tmp2, tmp1);
@@ -118,13 +111,11 @@ crcr32_reduce_64_to_32(__m128i data64, __m128i precomp)return _mm_extract_epi32 (tmp2,2 ); } -static const alignas(16 )uint8_t crc_xmm_shift_tab[48 ] = { -0xff ,0xff ,0xff ,0xff ,0xff ,0xff ,0xff ,0xff , -0xff ,0xff ,0xff ,0xff ,0xff ,0xff ,0xff ,0xff , +static const alignas(16 )uint8_t crc_xmm_shift_tab[32 ] = { +0x00 ,0x81 ,0x82 ,0x83 ,0x84 ,0x85 ,0x86 ,0x87 , +0x88 ,0x89 ,0x8a ,0x8b ,0x8c ,0x8d ,0x8e ,0x8f ,0x00 ,0x01 ,0x02 ,0x03 ,0x04 ,0x05 ,0x06 ,0x07 , -0x08 ,0x09 ,0x0a ,0x0b ,0x0c ,0x0d ,0x0e ,0x0f , -0xff ,0xff ,0xff ,0xff ,0xff ,0xff ,0xff ,0xff , -0xff ,0xff ,0xff ,0xff ,0xff ,0xff ,0xff ,0xff +0x08 ,0x09 ,0x0a ,0x0b ,0x0c ,0x0d ,0x0e ,0x0f };/**
@@ -216,19 +207,12 @@ crc32_eth_calc_pclmulqdq(0x80808080 ,0x80808080 ,0x80808080 ,0x80808080 }; -const alignas(16 )uint8_t shf_table[32 ] = { -0x00 ,0x81 ,0x82 ,0x83 ,0x84 ,0x85 ,0x86 ,0x87 , -0x88 ,0x89 ,0x8a ,0x8b ,0x8c ,0x8d ,0x8e ,0x8f , -0x00 ,0x01 ,0x02 ,0x03 ,0x04 ,0x05 ,0x06 ,0x07 , -0x08 ,0x09 ,0x0a ,0x0b ,0x0c ,0x0d ,0x0e ,0x0f - }; -__m128i last16, a, b; last16 =_mm_loadu_si128 ((const __m128i *)&data[data_len -16 ]); temp =_mm_loadu_si128 ((const __m128i *) - &shf_table[data_len &15 ]); + &crc_xmm_shift_tab[data_len &15 ]); a =_mm_shuffle_epi8 (fold, temp); temp = _mm_xor_si128(temp,
Signature · 1 line
2.49.1
Hello,
16/07/2025 12:34, Shreesh Adiga:
Quoted 11 lines
Replace the clearing of lower 32 bits of XMM register with blend of zero register.
Replace the clearing of upper 64 bits of XMM register with_mm_move_epi64. Clang is able to optimize away the AND + memory operand with the above sequence, however GCC is still emitting the code for AND with memory operands which is being explicitly eliminated here.Additionally replace the 48 byte
crc_xmm_shift_tabwith the contents ofshf_tablewhich is 32 bytes, achieving the same functionality.Signed-off-by Shreesh Adiga <[email protected]>
Sorry I'm not following.
Please could you start with defining the goal of this patch? Is it a code simplification or a performance optimization?
Quoted 11 lines · Thomas Monjalon
Hello,
16/07/2025 12:34, Shreesh Adiga:
Quoted 3 lines
Replace the clearing of lower 32 bits of XMM register with blend of zero register.
Replace the clearing of upper 64 bits of XMM register with
_mm_move_epi64.Quoted 4 lines
Clang is able to optimize away the AND + memory operand with the above sequence, however GCC is still emitting the code for AND with memory operands which is being explicitly eliminated here.
Quoted 8 lines
Quoted 4 lines
Additionally replace the 48 byte
crc_xmm_shift_tabwith the contents ofshf_tablewhich is 32 bytes, achieving the same functionality.Signed-off-by Shreesh Adiga <[email protected]>Sorry I'm not following.
Please could you start with defining the goal of this patch? Is it a code simplification or a performance optimization?
It is intended to be a minor performance optimization.
29/09/2025 18:28, Shreesh Adiga:
Quoted 16 lines · Thomas Monjalon
Quoted 15 lines
Hello,
16/07/2025 12:34, Shreesh Adiga:
Quoted 3 lines
Replace the clearing of lower 32 bits of XMM register with blend of zero register.
Replace the clearing of upper 64 bits of XMM register with
_mm_move_epi64.Quoted 7 lines
Clang is able to optimize away the AND + memory operand with the above sequence, however GCC is still emitting the code for AND with memory operands which is being explicitly eliminated here.
Additionally replace the 48 byte
crc_xmm_shift_tabwith the contents ofshf_tablewhich is 32 bytes, achieving the same functionality.
Quoted 7 lines
Quoted 5 lines
Quoted 1 line
Signed-off-by Shreesh Adiga <[email protected]>Sorry I'm not following.
Please could you start with defining the goal of this patch? Is it a code simplification or a performance optimization?It is intended to be a minor performance optimization.
Please could you give some performance numbers in the commit log?
Quoted 21 lines · Thomas Monjalon
29/09/2025 18:28, Shreesh Adiga:
Quoted 1 line
On Wed, Sep 24, 2025 at 8:28 PM Thomas Monjalon <[email protected]>
Quoted 7 lines · wrote:
Quoted 7 lines
Hello,
16/07/2025 12:34, Shreesh Adiga:
Quoted 3 lines
Replace the clearing of lower 32 bits of XMM register with blend of zero register.
Replace the clearing of upper 64 bits of XMM register withQuoted 6 lines
Quoted 6 lines
_mm_move_epi64.Quoted 5 lines
Clang is able to optimize away the AND + memory operand with the above sequence, however GCC is still emitting the code for AND with memory operands which is being explicitly eliminated here.
Additionally replace the 48 byte
crc_xmm_shift_tabwith the contentsof
Quoted 4 lines
Quoted 4 lines
Quoted 3 lines
shf_tablewhich is 32 bytes, achieving the same functionality.Signed-off-by Shreesh Adiga <[email protected]>
Quoted 8 lines
Quoted 5 lines
Quoted 3 lines
Sorry I'm not following.
Please could you start with defining the goal of this patch? Is it a code simplification or a performance optimization?It is intended to be a minor performance optimization.
Please could you give some performance numbers in the commit log?
I don't think that this change can be reliably measured. The changes only impact
the last stage crc 64 to 32 fold and the last 16 bytes computation. The impact will only
be a couple of clock cycles at best. Reducing the static array usage also I don't know
if it can be reliably measured especially since it is not affecting the main loop.
This patch can be ignored if minor incremental changes are not desirable.
01/10/2025 12:24, Shreesh Adiga:
Quoted 31 lines · Thomas Monjalon
Quoted 22 lines
29/09/2025 18:28, Shreesh Adiga:
Quoted 1 line
On Wed, Sep 24, 2025 at 8:28 PM Thomas Monjalon <[email protected]>
Quoted 7 lines · wrote:
Quoted 7 lines
Hello,
16/07/2025 12:34, Shreesh Adiga:
Quoted 3 lines
Replace the clearing of lower 32 bits of XMM register with blend of zero register.
Replace the clearing of upper 64 bits of XMM register withQuoted 6 lines
Quoted 6 lines
_mm_move_epi64.Quoted 5 lines
Clang is able to optimize away the AND + memory operand with the above sequence, however GCC is still emitting the code for AND with memory operands which is being explicitly eliminated here.
Additionally replace the 48 byte
crc_xmm_shift_tabwith the contentsof
Quoted 4 lines
Quoted 4 lines
Quoted 3 lines
shf_tablewhich is 32 bytes, achieving the same functionality.Signed-off-by Shreesh Adiga <[email protected]>Quoted 8 lines
Quoted 5 lines
Quoted 3 lines
Sorry I'm not following.
Please could you start with defining the goal of this patch? Is it a code simplification or a performance optimization?It is intended to be a minor performance optimization.
Please could you give some performance numbers in the commit log?
Quoted 9 lines
I don't think that this change can be reliably measured. The changes only impact
the last stage crc 64 to 32 fold and the last 16 bytes computation. The impact will only
be a couple of clock cycles at best. Reducing the static array usage also I don't know
if it can be reliably measured especially since it is not affecting the main loop.
This patch can be ignored if minor incremental changes are not desirable.
Minor changes are desirable.
I'm just asking to understand the real impact of the change. In general when doing an optimization we try to test it and give some numbers.
Note we have a unit test for CRC in app/test/test_crc.c but no performance test for it.
I'll wait for a review from an x86 maintainer.
Quoted 7 lines · Shreesh Adiga
Replace the clearing of lower 32 bits of XMM register with blend of zero register.
Replace the clearing of upper 64 bits of XMM register with_mm_move_epi64. Clang is able to optimize away the AND + memory operand with the above sequence, however GCC is still emitting the code for AND with memory operands which is being explicitly eliminated here.
Quoted 8 lines
Additionally replace the 48 byte
crc_xmm_shift_tabwith the contents ofshf_tablewhich is 32 bytes, achieving the same functionality.Signed-off-by Shreesh Adiga <[email protected]>--- lib/net/net_crc_sse.c | 30 +++++++----------------------- 1 file changed, 7 insertions(+), 23 deletions(-)
See inline below. Changes to the reduce_64_to_32 look ok, I don't know enough to understand fully the other changes you made. Maybe split the patch into two patches for review and merge separately?
/Bruce
Quoted 9 lines
lib/net/net_crc_sse.c +0
-1@@ -96,20 +96,13 @@ crcr32_reduce_128_to_64(__m128i data128, __m128i precomp) static __rte_always_inline uint32_tcrcr32_reduce_64_to_32 (__m128i data64,__m128i precomp) { -static const alignas(16 )uint32_t mask1[4 ] = {
lib/net/net_crc_sse.c crcr32_reduce_128_to_64(__m128i data128, __m128i precomp) · line 101
Quoted 10 lines
lib/net/net_crc_sse.c +1
-7- 0xffffffff, 0xffffffff, 0x00000000, 0x00000000 - }; - -static const alignas(16 )uint32_t mask2[4 ] = { -0x00000000 ,0xffffffff ,0xffffffff ,0xffffffff - };__m128i tmp0, tmp1, tmp2; - tmp0 =_mm_and_si128 (data64,_mm_load_si128 ((const __m128i *)mask2)); + tmp0 =_mm_blend_epi16 (_mm_setzero_si128 (), data64,252 );
Minor nit: 252 would be better in hex to make it clearer that it's the lower two bits are unset. Even better, how about switching the operands so that the constant is just "3", which is clearer again.
lib/net/net_crc_sse.c crcr32_reduce_128_to_64(__m128i data128, __m128i precomp) · line 106
Quoted 6 lines
lib/net/net_crc_sse.c +1
-1tmp1 =_mm_clmulepi64_si128 (tmp0, precomp,0x00 ); tmp1 =_mm_xor_si128 (tmp1, tmp0); - tmp1 =_mm_and_si128 (tmp1,_mm_load_si128 ((const __m128i *)mask1)); + tmp1 =_mm_move_epi64 (tmp1);
This change LGTM.
Quoted 9 lines
lib/net/net_crc_sse.c +0
-3tmp2 =_mm_clmulepi64_si128 (tmp1, precomp,0x10 ); tmp2 =_mm_xor_si128 (tmp2, tmp1);@@ -118,13 +111,11 @@ crcr32_reduce_64_to_32(__m128i data64, __m128i precomp)return _mm_extract_epi32 (tmp2,2 ); } -static const alignas(16 )uint8_t crc_xmm_shift_tab[48 ] = { -0xff ,0xff ,0xff ,0xff ,0xff ,0xff ,0xff ,0xff , -0xff ,0xff ,0xff ,0xff ,0xff ,0xff ,0xff ,0xff ,
lib/net/net_crc_sse.c crcr32_reduce_64_to_32(__m128i data64, __m128i precomp) · line 120
Quoted 10 lines
lib/net/net_crc_sse.c +4
-3+static const alignas(16 )uint8_t crc_xmm_shift_tab[32 ] = { +0x00 ,0x81 ,0x82 ,0x83 ,0x84 ,0x85 ,0x86 ,0x87 , +0x88 ,0x89 ,0x8a ,0x8b ,0x8c ,0x8d ,0x8e ,0x8f ,0x00 ,0x01 ,0x02 ,0x03 ,0x04 ,0x05 ,0x06 ,0x07 , -0x08 ,0x09 ,0x0a ,0x0b ,0x0c ,0x0d ,0x0e ,0x0f , -0xff ,0xff ,0xff ,0xff ,0xff ,0xff ,0xff ,0xff , -0xff ,0xff ,0xff ,0xff ,0xff ,0xff ,0xff ,0xff +0x08 ,0x09 ,0x0a ,0x0b ,0x0c ,0x0d ,0x0e ,0x0f };
Can you perhaps explain how changing this table doesn't break existing uses of the table as it now is in the code? Specifically, does xmm_shift_left function not now have different behaviour?
Quoted 25 lines
lib/net/net_crc_sse.c +1
-8/** @@ -216,19 +207,12 @@ crc32_eth_calc_pclmulqdq(0x80808080 ,0x80808080 ,0x80808080 ,0x80808080 }; -const alignas(16 )uint8_t shf_table[32 ] = { -0x00 ,0x81 ,0x82 ,0x83 ,0x84 ,0x85 ,0x86 ,0x87 , -0x88 ,0x89 ,0x8a ,0x8b ,0x8c ,0x8d ,0x8e ,0x8f , -0x00 ,0x01 ,0x02 ,0x03 ,0x04 ,0x05 ,0x06 ,0x07 , -0x08 ,0x09 ,0x0a ,0x0b ,0x0c ,0x0d ,0x0e ,0x0f - }; -__m128i last16, a, b; last16 =_mm_loadu_si128 ((const __m128i *)&data[data_len -16 ]); temp =_mm_loadu_si128 ((const __m128i *) - &shf_table[data_len &15 ]); + &crc_xmm_shift_tab[data_len &15 ]); a =_mm_shuffle_epi8 (fold, temp); temp = _mm_xor_si128(temp,Signature · 1 line
2.49.1
Quoted 42 lines · Bruce Richardson
Quoted 3 lines · Shreesh Adiga
Replace the clearing of lower 32 bits of XMM register with blend of zero register.
Replace the clearing of upper 64 bits of XMM register with
_mm_move_epi64.Quoted 4 lines
Clang is able to optimize away the AND + memory operand with the above sequence, however GCC is still emitting the code for AND with memory operands which is being explicitly eliminated here.
Quoted 8 lines
Additionally replace the 48 byte
crc_xmm_shift_tabwith the contents ofshf_tablewhich is 32 bytes, achieving the same functionality.Signed-off-by Shreesh Adiga <[email protected]>--- lib/net/net_crc_sse.c | 30 +++++++----------------------- 1 file changed, 7 insertions(+), 23 deletions(-)See inline below. Changes to the
reduce_64_to_32look ok, I don't know enough to understand fully the other changes you made. Maybe split the patch into two patches for review and merge separately?/Bruce
lib/net/net_crc_sse.c crcr32_reduce_128_to_64(__m128i data128, __m128i
Quoted 5 lines
lib/net/net_crc_sse.c +0
-0@@ -96,20 +96,13 @@ crcr32_reduce_128_to_64(__m128i data128, __m128iprecomp)
Quoted 12 lines
lib/net/net_crc_sse.c +0
-7static __rte_always_inline uint32_tcrcr32_reduce_64_to_32 (__m128i data64,__m128i precomp) { -static const alignas(16 )uint32_t mask1[4 ] = { -0xffffffff ,0xffffffff ,0x00000000 ,0x00000000 - }; - -static const alignas(16 )uint32_t mask2[4 ] = { -0x00000000 ,0xffffffff ,0xffffffff ,0xffffffff - };__m128i tmp0, tmp1, tmp2;
Quoted 8 lines
lib/net/net_crc_sse.c crcr32_reduce_128_to_64(__m128i data128, __m128i · line 108
Quoted 1 line
lib/net/net_crc_sse.c +0
-1- tmp0 = _mm_and_si128(data64, _mm_load_si128((const __m128i*)mask2));
lib/net/net_crc_sse.c crcr32_reduce_128_to_64(__m128i data128, __m128i precomp) · line 101
Quoted 1 line
lib/net/net_crc_sse.c +1
-0+ tmp0 =_mm_blend_epi16 (_mm_setzero_si128 (), data64,252 );Minor nit: 252 would be better in hex to make it clearer that it's the lower two bits are unset. Even better, how about switching the operands so that the constant is just "3", which is clearer again.
Okay I will update it with your suggestion in the next patch.
Quoted 25 lines
lib/net/net_crc_sse.c crcr32_reduce_128_to_64(__m128i data128, __m128i precomp) · line 106
Quoted 6 lines
lib/net/net_crc_sse.c +1
-1tmp1 =_mm_clmulepi64_si128 (tmp0, precomp,0x00 ); tmp1 =_mm_xor_si128 (tmp1, tmp0); - tmp1 =_mm_and_si128 (tmp1,_mm_load_si128 ((const __m128i *)mask1)); + tmp1 =_mm_move_epi64 (tmp1);This change LGTM.
lib/net/net_crc_sse.c crcr32_reduce_64_to_32(__m128i data64, __m128i
Quoted 3 lines
lib/net/net_crc_sse.c +0
-0tmp2 =_mm_clmulepi64_si128 (tmp1, precomp,0x10 ); tmp2 =_mm_xor_si128 (tmp2, tmp1);@@ -118,13 +111,11 @@ crcr32_reduce_64_to_32(__m128i data64, __m128iprecomp)
Quoted 12 lines
lib/net/net_crc_sse.c +3
-5return _mm_extract_epi32 (tmp2,2 ); } -static const alignas(16 )uint8_t crc_xmm_shift_tab[48 ] = { -0xff ,0xff ,0xff ,0xff ,0xff ,0xff ,0xff ,0xff , -0xff ,0xff ,0xff ,0xff ,0xff ,0xff ,0xff ,0xff , +static const alignas(16 )uint8_t crc_xmm_shift_tab[32 ] = { +0x00 ,0x81 ,0x82 ,0x83 ,0x84 ,0x85 ,0x86 ,0x87 , +0x88 ,0x89 ,0x8a ,0x8b ,0x8c ,0x8d ,0x8e ,0x8f ,0x00 ,0x01 ,0x02 ,0x03 ,0x04 ,0x05 ,0x06 ,0x07 , -0x08 ,0x09 ,0x0a ,0x0b ,0x0c ,0x0d ,0x0e ,0x0f , -0xff ,0xff ,0xff ,0xff ,0xff ,0xff ,0xff ,0xff ,
Quoted 9 lines
lib/net/net_crc_sse.c crcr32_reduce_64_to_32(__m128i data64, __m128i precomp) · line 120
Quoted 4 lines
lib/net/net_crc_sse.c +1
-1- 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff + 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f };Can you perhaps explain how changing this table doesn't break existing uses of the table as it now is in the code? Specifically, does
xmm_shift_leftfunction not now have different behaviour?
Sure, crc_xmm_shift_tab is only used inside xmm_shift_left which is only used when
the total data_len is < 16. We call xmm_shift_left(fold, 8 - data_len) when len <= 4 andxmm_shift_left(fold, 16 - data_len) when 5 <= len <= 15. This results in accessingcrc_xmm_shift_tab between 1 and 31, i.e. element 0 is never accessed.
Now if we take a specific case of xmm_shift_left(fold, 10), then previously the shuffle register
would get loaded with (crc_xmm_shift_tab + 16 - 10) which would be crc_xmm_shift_tab + 6:
{0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x01, 0x02, 0x03, 0x04, 0x05} which
when used with PSHUFB would result in first 10 bytes of reg being 0 and the lower 6
elements moving left: {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, d1, d2, d3, d4, d5, d6}. The 0 get inserted
because PSHUFB with index > 0x7f (MSB set) results in 0.
Now since we have replaced the contents of crc_xmm_shift_tab with shf_table, we will load:
{0x86, 0x87, 0x88, 0x89, 0x8a, 0x8b, 0x8c, 0x8d, 0x8e, 0x8f, 0x00, 0x01, 0x02, 0x03, 0x04, 0x05}
into the index register. Since the first 10 elements have MSB set, PSHUFB will again result in the
same vector above with first 10 elements being zeroes and the 6 moving left as intended.
Since xmm_shift_left is called with num between 11 and 1, we don't access crc_xmm_shift_tab[0]
and the remaining elements 0x8{i} behave identically to 0xff when used with PSHUFB. Thus
the xmm_shift_left behavior for currently used num values inside this file has identical behavior.
Quoted 28 lines
Quoted 6 lines
lib/net/net_crc_sse.c +0
-0/** @@ -216,19 +207,12 @@ crc32_eth_calc_pclmulqdq( 0x80808080, 0x80808080, 0x80808080, 0x80808080 };lib/net/net_crc_sse.c crc32_eth_calc_pclmulqdq( · line 212
Quoted 10 lines
lib/net/net_crc_sse.c +0
-7-const alignas(16 )uint8_t shf_table[32 ] = { -0x00 ,0x81 ,0x82 ,0x83 ,0x84 ,0x85 ,0x86 ,0x87 , -0x88 ,0x89 ,0x8a ,0x8b ,0x8c ,0x8d ,0x8e ,0x8f , -0x00 ,0x01 ,0x02 ,0x03 ,0x04 ,0x05 ,0x06 ,0x07 , -0x08 ,0x09 ,0x0a ,0x0b ,0x0c ,0x0d ,0x0e ,0x0f - }; -__m128i last16, a, b; last16 = _mm_loadu_si128((const __m128i *)&data[data_len -16]);
Quoted 10 lines
lib/net/net_crc_sse.c +1
-2temp =_mm_loadu_si128 ((const __m128i *) - &shf_table[data_len &15 ]); + &crc_xmm_shift_tab[data_len &15 ]); a =_mm_shuffle_epi8 (fold, temp); temp = _mm_xor_si128(temp, --2.49.1
Stephen Hemminger
AppliedQuoted 7 lines · On Wed, 16 Jul 2025 16:04:39 +0530 Shreesh Adiga <[email protected]>…
Replace the clearing of lower 32 bits of XMM register with blend of zero register.
Replace the clearing of upper 64 bits of XMM register with_mm_move_epi64. Clang is able to optimize away the AND + memory operand with the above sequence, however GCC is still emitting the code for AND with memory operands which is being explicitly eliminated here.
Quoted 5 lines
Additionally replace the 48 byte
crc_xmm_shift_tabwith the contents ofshf_tablewhich is 32 bytes, achieving the same functionality.Signed-off-by Shreesh Adiga <[email protected]>---
Applied to net-next