summaryrefslogtreecommitdiffstats
path: root/arch/s390/net
diff options
context:
space:
mode:
authorUrsula Braun2019-02-07 15:56:14 +0100
committerDavid S. Miller2019-02-08 03:06:18 +0100
commit41c80be24be4eae27571ce524def9467c9705ce5 (patch)
tree0f9fd318b146fd25e5eac4456e3923e280873284 /arch/s390/net
parentnet: vxlan: Free a leaked vetoed multicast rdst (diff)
downloadkernel-qcow2-linux-41c80be24be4eae27571ce524def9467c9705ce5.tar.gz
kernel-qcow2-linux-41c80be24be4eae27571ce524def9467c9705ce5.tar.xz
kernel-qcow2-linux-41c80be24be4eae27571ce524def9467c9705ce5.zip
s390/net: move pnet constants
There is no need to define these PNETID related constants in the pnet.h file, since they are just used locally within pnet.c. Just code cleanup, no functional change. Signed-off-by: Ursula Braun <ubraun@linux.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/s390/net')
-rw-r--r--arch/s390/net/pnet.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/s390/net/pnet.c b/arch/s390/net/pnet.c
index e22f1b10a6c7..9ecdbdf59781 100644
--- a/arch/s390/net/pnet.c
+++ b/arch/s390/net/pnet.c
@@ -13,6 +13,14 @@
#include <asm/ccwdev.h>
#include <asm/pnet.h>
+#define PNETIDS_LEN 64 /* Total utility string length in bytes
+ * to cover up to 4 PNETIDs of 16 bytes
+ * for up to 4 device ports
+ */
+#define MAX_PNETID_LEN 16 /* Max.length of a single port PNETID */
+#define MAX_PNETID_PORTS (PNETIDS_LEN / MAX_PNETID_LEN)
+ /* Max. # of ports with a PNETID */
+
/*
* Get the PNETIDs from a device.
* s390 hardware supports the definition of a so-called Physical Network