qeth_l2.h (1191B)
1/* SPDX-License-Identifier: GPL-2.0 */ 2/* 3 * Copyright IBM Corp. 2013 4 * Author(s): Eugene Crosser <eugene.crosser@ru.ibm.com> 5 */ 6 7#ifndef __QETH_L2_H__ 8#define __QETH_L2_H__ 9 10#include "qeth_core.h" 11 12extern const struct attribute_group *qeth_l2_attr_groups[]; 13 14int qeth_bridgeport_query_ports(struct qeth_card *card, 15 enum qeth_sbp_roles *role, 16 enum qeth_sbp_states *state); 17int qeth_bridgeport_setrole(struct qeth_card *card, enum qeth_sbp_roles role); 18int qeth_bridgeport_an_set(struct qeth_card *card, int enable); 19 20int qeth_l2_vnicc_set_state(struct qeth_card *card, u32 vnicc, bool state); 21int qeth_l2_vnicc_get_state(struct qeth_card *card, u32 vnicc, bool *state); 22int qeth_l2_vnicc_set_timeout(struct qeth_card *card, u32 timeout); 23int qeth_l2_vnicc_get_timeout(struct qeth_card *card, u32 *timeout); 24bool qeth_bridgeport_allowed(struct qeth_card *card); 25 26struct qeth_mac { 27 u8 mac_addr[ETH_ALEN]; 28 u8 disp_flag:2; 29 struct hlist_node hnode; 30}; 31 32static inline bool qeth_bridgeport_is_in_use(struct qeth_card *card) 33{ 34 return card->options.sbp.role || 35 card->options.sbp.reflect_promisc || 36 card->options.sbp.hostnotification; 37} 38 39#endif /* __QETH_L2_H__ */