]> git.baikalelectronics.ru Git - kernel.git/commit
net/smc: retain old name for diag_mode field
authorEugene Syromiatnikov <esyr@redhat.com>
Sun, 7 Oct 2018 14:57:37 +0000 (16:57 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 8 Oct 2018 04:06:28 +0000 (21:06 -0700)
commitebaa51965f2b30a7903f0e9370ffb68df5c81461
tree7d03e7ffef08c3c779734c64bc4d4f6ba649ce2f
parent04684c2cb4d02353ee0b6569d6fea132610b9b73
net/smc: retain old name for diag_mode field

Commit c3cef703d472 ("net/smc: provide smc mode in smc_diag.c") changed
the name of diag_fallback field of struct smc_diag_msg structure
to diag_mode.  However, this structure is a part of UAPI, and this change
breaks user space applications that use it ([1], for example).  Since
the new name is more suitable, convert the field to a union that provides
access to the data via both the new and the old name.

[1] https://gitlab.com/strace/strace/blob/v4.24/netlink_smc_diag.c#L165

Fixes: c3cef703d472 ("net/smc: provide smc mode in smc_diag.c")
Signed-off-by: Eugene Syromiatnikov <esyr@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/uapi/linux/smc_diag.h