net/smc: add pnetid support
[linux-2.6-microblaze.git] / net / smc / smc_ib.h
index 2c480b3..7c1223c 100644 (file)
@@ -15,6 +15,7 @@
 #include <linux/interrupt.h>
 #include <linux/if_ether.h>
 #include <rdma/ib_verbs.h>
+#include <net/smc.h>
 
 #define SMC_MAX_PORTS                  2       /* Max # of ports */
 #define SMC_GID_SIZE                   sizeof(union ib_gid)
@@ -40,6 +41,8 @@ struct smc_ib_device {                                /* ib-device infos for smc */
        char                    mac[SMC_MAX_PORTS][ETH_ALEN];
                                                /* mac address per port*/
        union ib_gid            gid[SMC_MAX_PORTS]; /* gid per port */
+       u8                      pnetid[SMC_MAX_PORTS][SMC_MAX_PNETID_LEN];
+                                               /* pnetid per port */
        u8                      initialized : 1; /* ib dev CQ, evthdl done */
        struct work_struct      port_event_work;
        unsigned long           port_event_mask;