aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/qed/qed_eth_if.h
diff options
context:
space:
mode:
authorManish Chopra <manish.chopra@qlogic.com>2016-04-14 01:38:29 -0400
committerDavid S. Miller <davem@davemloft.net>2016-04-15 17:08:08 -0400
commit464f664501816ef5fbbc00b8de96f4ae5a1c9325 (patch)
tree00b38bfa53e1affbcf45cff5b419c3a1d465731d /include/linux/qed/qed_eth_if.h
parentnet/hsr: Added support for HSR v1 (diff)
downloadwireguard-linux-464f664501816ef5fbbc00b8de96f4ae5a1c9325.tar.xz
wireguard-linux-464f664501816ef5fbbc00b8de96f4ae5a1c9325.zip
qed: Add infrastructure support for tunneling
This patch adds various structure/APIs needed to configure/enable different tunnel [VXLAN/GRE/GENEVE] parameters on the adapter. Signed-off-by: Manish Chopra <manish.chopra@qlogic.com> Signed-off-by: Yuval Mintz <Yuval.Mintz@qlogic.com> Signed-off-by: Ariel Elior <Ariel.Elior@qlogic.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/qed/qed_eth_if.h')
-rw-r--r--include/linux/qed/qed_eth_if.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/linux/qed/qed_eth_if.h b/include/linux/qed/qed_eth_if.h
index 795c9902e02f..3a4c806be156 100644
--- a/include/linux/qed/qed_eth_if.h
+++ b/include/linux/qed/qed_eth_if.h
@@ -112,6 +112,13 @@ struct qed_queue_start_common_params {
u16 sb_idx;
};
+struct qed_tunn_params {
+ u16 vxlan_port;
+ u8 update_vxlan_port;
+ u16 geneve_port;
+ u8 update_geneve_port;
+};
+
struct qed_eth_cb_ops {
struct qed_common_cb_ops common;
};
@@ -166,6 +173,9 @@ struct qed_eth_ops {
void (*get_vport_stats)(struct qed_dev *cdev,
struct qed_eth_stats *stats);
+
+ int (*tunn_config)(struct qed_dev *cdev,
+ struct qed_tunn_params *params);
};
const struct qed_eth_ops *qed_get_eth_ops(void);