Contributors: 9
Author |
Tokens |
Token Proportion |
Commits |
Commit Proportion |
Einar Lueck |
45 |
23.94% |
1 |
6.67% |
Julian Wiedmann |
42 |
22.34% |
4 |
26.67% |
Hans Wippel |
40 |
21.28% |
2 |
13.33% |
Eugene Crosser |
29 |
15.43% |
2 |
13.33% |
Lakhvich Dmitriy |
16 |
8.51% |
2 |
13.33% |
Frank Blaschka |
12 |
6.38% |
1 |
6.67% |
Sebastian Ott |
2 |
1.06% |
1 |
6.67% |
Alexandra Winter |
1 |
0.53% |
1 |
6.67% |
Greg Kroah-Hartman |
1 |
0.53% |
1 |
6.67% |
Total |
188 |
|
15 |
|
/* SPDX-License-Identifier: GPL-2.0 */
/*
* Copyright IBM Corp. 2013
* Author(s): Eugene Crosser <eugene.crosser@ru.ibm.com>
*/
#ifndef __QETH_L2_H__
#define __QETH_L2_H__
#include "qeth_core.h"
extern const struct attribute_group *qeth_l2_attr_groups[];
int qeth_bridgeport_query_ports(struct qeth_card *card,
enum qeth_sbp_roles *role,
enum qeth_sbp_states *state);
int qeth_bridgeport_setrole(struct qeth_card *card, enum qeth_sbp_roles role);
int qeth_bridgeport_an_set(struct qeth_card *card, int enable);
int qeth_l2_vnicc_set_state(struct qeth_card *card, u32 vnicc, bool state);
int qeth_l2_vnicc_get_state(struct qeth_card *card, u32 vnicc, bool *state);
int qeth_l2_vnicc_set_timeout(struct qeth_card *card, u32 timeout);
int qeth_l2_vnicc_get_timeout(struct qeth_card *card, u32 *timeout);
bool qeth_bridgeport_allowed(struct qeth_card *card);
struct qeth_mac {
u8 mac_addr[ETH_ALEN];
u8 disp_flag:2;
struct hlist_node hnode;
};
static inline bool qeth_bridgeport_is_in_use(struct qeth_card *card)
{
return card->options.sbp.role ||
card->options.sbp.reflect_promisc ||
card->options.sbp.hostnotification;
}
#endif /* __QETH_L2_H__ */