qcacmn: Add dest mac addr in MSCS lookup API

Add dest mac address MSCS prioroty lookup API

Change-Id: If7f65af1821d6e7c37441521dc46789c9b4f9069
Cette révision appartient à :
Mainak Sen
2021-05-13 11:25:05 +05:30
révisé par Madan Koyyalamudi
Parent 9738504384
révision 162fb50fec
2 fichiers modifiés avec 8 ajouts et 6 suppressions

Voir le fichier

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2020 The Linux Foundation. All rights reserved.
* Copyright (c) 2020-2021 The Linux Foundation. All rights reserved.
*
* Permission to use, copy, modify, and/or distribute this software for
* any purpose with or without fee is hereby granted, provided that the
@@ -31,13 +31,14 @@
* This function checks if there is a peer for this mac adress with MSCS
* enabled flag set and nbuf priority is valid from user priority bitmap.
*
* @param peer_mac - mac address of peer
* @param src_mac - source mac address of peer
* @param dst_mac - destination mac address of peer
* @param nbuf - nbuf pointer
* @return - 0 for non error case, 1 for failure
*/
static inline int
cdp_mscs_peer_lookup_n_get_priority(ol_txrx_soc_handle soc,
uint8_t *peer_mac,
uint8_t *src_mac, uint8_t *dst_mac,
qdf_nbuf_t nbuf)
{
if (!soc || !soc->ops || !soc->ops->mscs_ops) {
@@ -48,7 +49,7 @@ cdp_mscs_peer_lookup_n_get_priority(ol_txrx_soc_handle soc,
if (soc->ops->mscs_ops->mscs_peer_lookup_n_get_priority)
return soc->ops->mscs_ops->mscs_peer_lookup_n_get_priority(soc,
peer_mac, nbuf);
src_mac, dst_mac, nbuf);
return 0;
}
#endif

Voir le fichier

@@ -1720,8 +1720,9 @@ struct cdp_cfr_ops {
*/
struct cdp_mscs_ops {
int (*mscs_peer_lookup_n_get_priority)(struct cdp_soc_t *soc,
uint8_t *peer_mac,
qdf_nbuf_t nbuf);
uint8_t *src_mac,
uint8_t *dst_mac,
qdf_nbuf_t nbuf);
};
#endif