diff options
author | Hans Wippel <hwippel@linux.vnet.ibm.com> | 2017-09-18 21:18:16 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-09-18 14:41:37 -0700 |
commit | 349d13d5ab58668ab7c8fadadf292430170c919e (patch) | |
tree | 4f3373a40935997bf4b3dd085ee4db35bcc7d529 /drivers/s390/net/qeth_core.h | |
parent | caa1f0b10d18f31c5491f84cb2e68a5d2047f437 (diff) | |
download | linux-349d13d5ab58668ab7c8fadadf292430170c919e.tar.gz linux-349d13d5ab58668ab7c8fadadf292430170c919e.tar.bz2 linux-349d13d5ab58668ab7c8fadadf292430170c919e.zip |
s390/qeth: add VNICC get/set timeout support
HiperSockets allow configuring so called VNIC Characteristics (VNICC)
that influence how the underlying hardware handles packets. For VNICCs,
additional commands for getting and setting timeouts are available.
Currently, the learning VNICC uses these commands.
* Learning VNICC: If learning is enabled on a qeth device, the device
learns the source MAC addresses of outgoing packets and incoming
packets to those learned MAC addresses are received.
For learning, the timeout specifies the idle period in seconds, after
which the underlying hardware removes a learned MAC address again.
This patch adds support for the IPA commands that are required to get
and set the current timeout values for the learning VNIC characteristic.
Also, it introduces the sysfs interface that allows users to configure
the timeout.
Signed-off-by: Hans Wippel <hwippel@linux.vnet.ibm.com>
Reviewed-by: Julian Wiedmann <jwi@linux.vnet.ibm.com>
Signed-off-by: Julian Wiedmann <jwi@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/s390/net/qeth_core.h')
-rw-r--r-- | drivers/s390/net/qeth_core.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/s390/net/qeth_core.h b/drivers/s390/net/qeth_core.h index 2236c0c9744a..e3d3609cd9e7 100644 --- a/drivers/s390/net/qeth_core.h +++ b/drivers/s390/net/qeth_core.h @@ -188,6 +188,9 @@ struct qeth_vnicc_info { u32 cur_chars; /* supported commands: bitmasks which VNICCs support respective cmd */ u32 set_char_sup; + u32 getset_timeout_sup; + /* timeout value for the learning characteristic */ + u32 learning_timeout; /* characteristics wanted/configured by user */ u32 wanted_chars; /* has user explicitly enabled rx_bcast while online? */ |