aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/qed/qed_eth_if.h
diff options
context:
space:
mode:
authorYuval Mintz <Yuval.Mintz@qlogic.com>2015-10-26 11:02:31 +0200
committerDavid S. Miller <davem@davemloft.net>2015-10-27 19:34:50 -0700
commitcc875c2e4f34e86c2f562f18b6e917cfcc560bcb (patch)
treeb097e1dcac34ad2c650d82fb1fc722d38db98f0b /include/linux/qed/qed_eth_if.h
parentqede: classification configuration (diff)
downloadwireguard-linux-cc875c2e4f34e86c2f562f18b6e917cfcc560bcb.tar.xz
wireguard-linux-cc875c2e4f34e86c2f562f18b6e917cfcc560bcb.zip
qed: Add link support
Physical link is handled by the management Firmware. This patch lays the infrastructure for attention handling in the driver, as link change notifications arrive via async. attentions, as well the handling of such notifications. This patch also extends the API with the protocol drivers by adding registered callbacks which the protocol driver passes to qed in order to be notified of async. events originating from the FW/HW. 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.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/qed/qed_eth_if.h b/include/linux/qed/qed_eth_if.h
index 67a7b41b70aa..ab1041424013 100644
--- a/include/linux/qed/qed_eth_if.h
+++ b/include/linux/qed/qed_eth_if.h
@@ -111,6 +111,10 @@ struct qed_eth_ops {
int (*fill_dev_info)(struct qed_dev *cdev,
struct qed_dev_eth_info *info);
+ void (*register_ops)(struct qed_dev *cdev,
+ struct qed_eth_cb_ops *ops,
+ void *cookie);
+
int (*vport_start)(struct qed_dev *cdev,
u8 vport_id, u16 mtu,
u8 drop_ttl0_flg,