git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
net/dpaa2: support Rx buffer size
[dpdk.git]
/
drivers
/
net
/
bnx2x
/
bnx2x_vfpf.h
diff --git
a/drivers/net/bnx2x/bnx2x_vfpf.h
b/drivers/net/bnx2x/bnx2x_vfpf.h
index
49afd87
..
7aab8b1
100644
(file)
--- a/
drivers/net/bnx2x/bnx2x_vfpf.h
+++ b/
drivers/net/bnx2x/bnx2x_vfpf.h
@@
-1,11
+1,8
@@
-/*
+/*
SPDX-License-Identifier: BSD-3-Clause
* Copyright (c) 2013-2015 Brocade Communications Systems, Inc.
* Copyright (c) 2013-2015 Brocade Communications Systems, Inc.
- *
- * Copyright (c) 2015 QLogic Corporation.
+ * Copyright (c) 2015-2018 Cavium Inc.
* All rights reserved.
* All rights reserved.
- * www.qlogic.com
- *
- * See LICENSE.bnx2x_pmd for copyright and licensing details.
+ * www.cavium.com
*/
#ifndef BNX2X_VFPF_H
*/
#ifndef BNX2X_VFPF_H
@@
-54,8
+51,7
@@
struct channel_tlv {
};
struct vf_first_tlv {
};
struct vf_first_tlv {
- uint16_t type;
- uint16_t length;
+ struct channel_tlv tl;
uint32_t reply_offset;
};
uint32_t reply_offset;
};
@@
-65,16
+61,14
@@
struct tlv_buffer_size {
/* tlv struct for all PF replies except acquire */
struct vf_common_reply_tlv {
/* tlv struct for all PF replies except acquire */
struct vf_common_reply_tlv {
- uint16_t type;
- uint16_t length;
+ struct channel_tlv tl;
uint8_t status;
uint8_t pad[3];
};
/* used to terminate and pad a tlv list */
struct channel_list_end_tlv {
uint8_t status;
uint8_t pad[3];
};
/* used to terminate and pad a tlv list */
struct channel_list_end_tlv {
- uint16_t type;
- uint16_t length;
+ struct channel_tlv tl;
uint32_t pad;
};
uint32_t pad;
};
@@
-121,7
+115,7
@@
struct vf_resc {
uint8_t num_vlan_filters;
uint8_t num_mc_filters;
uint8_t permanent_mac_addr[ETH_ALEN];
uint8_t num_vlan_filters;
uint8_t num_mc_filters;
uint8_t permanent_mac_addr[ETH_ALEN];
- struct ether_addr current_mac_addr;
+ struct
rte_
ether_addr current_mac_addr;
uint16_t pf_link_speed;
uint32_t pf_link_supported;
};
uint16_t pf_link_speed;
uint32_t pf_link_supported;
};
@@
-285,7
+279,7
@@
struct bnx2x_vf_bulletin {
uint16_t version;
uint16_t length;
uint16_t version;
uint16_t length;
- uint64_t valid_bitmap; /* bitmap indicating wich fields
+ uint64_t valid_bitmap; /* bitmap indicating w
h
ich fields
* hold valid values
*/
* hold valid values
*/
@@
-334,8
+328,11
@@
struct bnx2x_vf_mbx_msg {
union resp_tlvs resp;
};
union resp_tlvs resp;
};
-
void bnx2x_add_tlv(void *tlvs_list, uint16_t offset, uint16_t type, uint16_t length
);
+
int bnx2x_vf_teardown_queue(struct bnx2x_softc *sc, int qid
);
int bnx2x_vf_set_mac(struct bnx2x_softc *sc, int set);
int bnx2x_vf_config_rss(struct bnx2x_softc *sc, struct ecore_config_rss_params *params);
int bnx2x_vf_set_mac(struct bnx2x_softc *sc, int set);
int bnx2x_vf_config_rss(struct bnx2x_softc *sc, struct ecore_config_rss_params *params);
+int bnx2x_vfpf_set_mcast(struct bnx2x_softc *sc,
+ struct rte_ether_addr *mc_addrs,
+ uint32_t mc_addrs_num);
#endif /* BNX2X_VFPF_H */
#endif /* BNX2X_VFPF_H */