Merge tag 'pm+acpi-3.14-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafae...
[cascardo/linux.git] / include / rdma / ib_sa.h
index 8275e53..7e071a6 100644 (file)
@@ -154,6 +154,9 @@ struct ib_sa_path_rec {
        u8           packet_life_time_selector;
        u8           packet_life_time;
        u8           preference;
+       u8           smac[ETH_ALEN];
+       u8           dmac[ETH_ALEN];
+       u16          vlan_id;
 };
 
 #define IB_SA_MCMEMBER_REC_MGID                                IB_SA_COMP_MASK( 0)
@@ -401,6 +404,12 @@ int ib_init_ah_from_path(struct ib_device *device, u8 port_num,
                         struct ib_sa_path_rec *rec,
                         struct ib_ah_attr *ah_attr);
 
+/**
+ * ib_sa_pack_path - Conert a path record from struct ib_sa_path_rec
+ * to IB MAD wire format.
+ */
+void ib_sa_pack_path(struct ib_sa_path_rec *rec, void *attribute);
+
 /**
  * ib_sa_unpack_path - Convert a path record from MAD format to struct
  * ib_sa_path_rec.
@@ -418,4 +427,5 @@ int ib_sa_guid_info_rec_query(struct ib_sa_client *client,
                                               void *context),
                              void *context,
                              struct ib_sa_query **sa_query);
+
 #endif /* IB_SA_H */