David Marchand 20d6a017e1 net/ice: fix build with GCC 12
GCC 12 raises the following warning:

In file included from ../lib/mempool/rte_mempool.h:46,
                 from ../lib/mbuf/rte_mbuf.h:38,
                 from ../lib/net/rte_ether.h:22,
                 from ../lib/ethdev/rte_ethdev.h:172,
                 from ../lib/ethdev/ethdev_driver.h:22,
                 from ../lib/ethdev/ethdev_pci.h:17,
                 from ../drivers/net/ice/ice_ethdev.c:6:
../drivers/net/ice/ice_ethdev.c: In function ‘ice_dev_configure’:
../lib/eal/x86/include/rte_memcpy.h:370:9: warning: array subscript 64 is
        outside array bounds of ‘struct ice_aqc_get_set_rss_keys[1]’
        [-Warray-bounds]
  370 | rte_mov32((uint8_t *)dst + 2 * 32, (const uint8_t *)src + 2 * 32);
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../drivers/net/ice/ice_ethdev.c:3202:41: note: while referencing ‘key’
 3202 |         struct ice_aqc_get_set_rss_keys key;
      |                                         ^~~

Restrict copy to minimum size.

Bugzilla ID: 850
Cc: stable@dpdk.org

Signed-off-by: David Marchand <david.marchand@redhat.com>
Acked-by: Stephen Hemminger <stephen@networkplumber.org>
2022-06-15 10:20:36 +02:00
..
2022-06-08 10:38:39 +02:00
2022-05-23 02:48:42 +02:00
2022-05-10 15:43:09 +02:00
2022-06-15 10:19:18 +02:00
2022-01-20 16:24:09 +01:00
2022-06-08 14:38:44 +02:00
2022-05-30 15:29:51 +02:00
2022-06-15 10:20:36 +02:00
2022-05-25 10:52:46 +02:00
2022-02-27 21:26:06 +01:00
2022-03-03 12:30:51 +01:00
2022-02-15 14:53:41 +01:00
2022-02-12 12:07:48 +01:00
2022-02-12 12:07:48 +01:00
2022-06-08 14:39:13 +02:00
2022-01-12 15:36:32 +01:00