qcacmn: Remove dedicated CDP API for mcastenhance 6 AST lookup
Remove dedicated CDP API for mcastenhance 6 AST lookup and replace the calls with generic APIs Change-Id: Ic2c5613be57d7eaffc233ee601f136694f81f848 CRs-Fixed: 2369606
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2016-2018 The Linux Foundation. All rights reserved.
|
* Copyright (c) 2016-2019 The Linux Foundation. All rights reserved.
|
||||||
*
|
*
|
||||||
* Permission to use, copy, modify, and/or distribute this software for
|
* Permission to use, copy, modify, and/or distribute this software for
|
||||||
* any purpose with or without fee is hereby granted, provided that the
|
* any purpose with or without fee is hereby granted, provided that the
|
||||||
@@ -140,25 +140,6 @@ cdp_tx_me_convert_ucast(ol_txrx_soc_handle soc, struct cdp_vdev *vdev,
|
|||||||
(vdev, wbuf, newmac, newmaccnt);
|
(vdev, wbuf, newmac, newmaccnt);
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline uint16_t
|
|
||||||
cdp_tx_me_find_ast_entry(ol_txrx_soc_handle soc, struct cdp_vdev *vdev,
|
|
||||||
uint8_t *da_mac_addr, uint8_t *ra_mac_addr)
|
|
||||||
{
|
|
||||||
if (!soc || !soc->ops) {
|
|
||||||
QDF_TRACE(QDF_MODULE_ID_CDP, QDF_TRACE_LEVEL_DEBUG,
|
|
||||||
"%s: Invalid Instance", __func__);
|
|
||||||
QDF_BUG(0);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!soc->ops->me_ops ||
|
|
||||||
!soc->ops->me_ops->tx_me_find_ast_entry)
|
|
||||||
return 0;
|
|
||||||
|
|
||||||
return soc->ops->me_ops->tx_me_find_ast_entry(vdev, da_mac_addr,
|
|
||||||
ra_mac_addr);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Should be a function pointer in ol_txrx_osif_ops{} */
|
/* Should be a function pointer in ol_txrx_osif_ops{} */
|
||||||
/**
|
/**
|
||||||
* @brief notify mcast frame indication from FW.
|
* @brief notify mcast frame indication from FW.
|
||||||
|
@@ -663,10 +663,6 @@ struct cdp_me_ops {
|
|||||||
|
|
||||||
int (*mcast_notify)(struct cdp_pdev *pdev,
|
int (*mcast_notify)(struct cdp_pdev *pdev,
|
||||||
u_int8_t vdev_id, qdf_nbuf_t msdu);
|
u_int8_t vdev_id, qdf_nbuf_t msdu);
|
||||||
|
|
||||||
uint16_t (*tx_me_find_ast_entry)(struct cdp_vdev *vdev,
|
|
||||||
uint8_t *da_mac_addr,
|
|
||||||
uint8_t *ra_mac_addr);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
struct cdp_mon_ops {
|
struct cdp_mon_ops {
|
||||||
|
@@ -9193,7 +9193,6 @@ static struct cdp_me_ops dp_ops_me = {
|
|||||||
.tx_me_free_descriptor = dp_tx_me_free_descriptor,
|
.tx_me_free_descriptor = dp_tx_me_free_descriptor,
|
||||||
.tx_me_convert_ucast = dp_tx_me_send_convert_ucast,
|
.tx_me_convert_ucast = dp_tx_me_send_convert_ucast,
|
||||||
#endif
|
#endif
|
||||||
.tx_me_find_ast_entry = NULL,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct cdp_mon_ops dp_ops_mon = {
|
static struct cdp_mon_ops dp_ops_mon = {
|
||||||
|
Reference in New Issue
Block a user