ionic: use offset for ethtool regs data
authorShannon Nelson <snelson@pensando.io>
Mon, 20 Jul 2020 23:00:13 +0000 (16:00 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 Jul 2020 01:09:38 +0000 (18:09 -0700)
commitf85ae16f924f92a370b81b4e77862c1c59882fce
treeccfaebd6ecfadbc45948dca2b01fcf75d5af9511
parent5d93518e06b2102253d465e523f16bd4cb5ce859
ionic: use offset for ethtool regs data

Use an offset to write the second half of the regs data into the
second half of the buffer instead of overwriting the first half.

Fixes: 4d03e00a2140 ("ionic: Add initial ethtool support")
Signed-off-by: Shannon Nelson <snelson@pensando.io>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/pensando/ionic/ionic_ethtool.c