struct qed_ll2_ops { /** * start(): Initializes ll2. * * @cdev: Qed dev pointer. * @params: Protocol driver configuration for the ll2. * * Return: 0 on success, otherwise error value.
*/ int (*start)(struct qed_dev *cdev, struct qed_ll2_params *params);
/** * stop(): Stops the ll2 * * @cdev: Qed dev pointer. * * Return: 0 on success, otherwise error value.
*/ int (*stop)(struct qed_dev *cdev);
/** * start_xmit(): Transmits an skb over the ll2 interface * * @cdev: Qed dev pointer. * @skb: SKB. * @xmit_flags: Transmit options defined by the enum qed_ll2_xmit_flags. * * Return: 0 on success, otherwise error value.
*/ int (*start_xmit)(struct qed_dev *cdev, struct sk_buff *skb, unsignedlong xmit_flags);
/** * register_cb_ops(): Protocol driver register the callback for Rx/Tx * packets. Should be called before `start'. * * @cdev: Qed dev pointer. * @cookie: to be passed to the callback functions. * @ops: the callback functions to register for Rx / Tx. * * Return: 0 on success, otherwise error value.
*/ void (*register_cb_ops)(struct qed_dev *cdev, conststruct qed_ll2_cb_ops *ops, void *cookie);
/** * get_stats(): Get LL2 related statistics. * * @cdev: Qed dev pointer. * @stats: Pointer to struct that would be filled with stats. * * Return: 0 on success, error otherwise.
*/ int (*get_stats)(struct qed_dev *cdev, struct qed_ll2_stats *stats);
};
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.