.. | .. |
---|
13 | 13 | |
---|
14 | 14 | int qeth_l2_create_device_attributes(struct device *); |
---|
15 | 15 | void qeth_l2_remove_device_attributes(struct device *); |
---|
16 | | -void qeth_l2_setup_bridgeport_attrs(struct qeth_card *card); |
---|
17 | 16 | int qeth_bridgeport_query_ports(struct qeth_card *card, |
---|
18 | 17 | enum qeth_sbp_roles *role, |
---|
19 | 18 | enum qeth_sbp_states *state); |
---|
.. | .. |
---|
24 | 23 | int qeth_l2_vnicc_get_state(struct qeth_card *card, u32 vnicc, bool *state); |
---|
25 | 24 | int qeth_l2_vnicc_set_timeout(struct qeth_card *card, u32 timeout); |
---|
26 | 25 | int qeth_l2_vnicc_get_timeout(struct qeth_card *card, u32 *timeout); |
---|
27 | | -bool qeth_l2_vnicc_is_in_use(struct qeth_card *card); |
---|
| 26 | +bool qeth_bridgeport_allowed(struct qeth_card *card); |
---|
28 | 27 | |
---|
29 | 28 | struct qeth_mac { |
---|
30 | 29 | u8 mac_addr[ETH_ALEN]; |
---|
.. | .. |
---|
32 | 31 | struct hlist_node hnode; |
---|
33 | 32 | }; |
---|
34 | 33 | |
---|
| 34 | +static inline bool qeth_bridgeport_is_in_use(struct qeth_card *card) |
---|
| 35 | +{ |
---|
| 36 | + return card->options.sbp.role || |
---|
| 37 | + card->options.sbp.reflect_promisc || |
---|
| 38 | + card->options.sbp.hostnotification; |
---|
| 39 | +} |
---|
| 40 | + |
---|
35 | 41 | #endif /* __QETH_L2_H__ */ |
---|