qcacmn: Add qal API for br_fdb_add_or_refresh_by_netdev
Add qal API for br_fdb_add_or_refresh_by_netdev Change-Id: I17acacab27782a531fa278f1535b9424e34637f1 CRs-Fixed: 3579431
This commit is contained in:

committed by
Rahul Choudhary

parent
102d3add36
commit
1f2743f8d4
@@ -1,5 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2021 The Linux Foundation. All rights reserved.
|
* Copyright (c) 2021 The Linux Foundation. All rights reserved.
|
||||||
|
* Copyright (c) 2023 Qualcomm Innovation Center, Inc. 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
|
||||||
@@ -52,6 +53,12 @@ qal_bridge_fdb_update_register_notify(qal_notify_blk_t nb);
|
|||||||
|
|
||||||
QDF_STATUS
|
QDF_STATUS
|
||||||
qal_bridge_fdb_update_unregister_notify(qal_notify_blk_t nb);
|
qal_bridge_fdb_update_unregister_notify(qal_notify_blk_t nb);
|
||||||
|
|
||||||
|
QDF_STATUS
|
||||||
|
qal_bridge_fdb_add_or_refresh_by_netdev(qal_netdev_t dev,
|
||||||
|
const unsigned char *addr,
|
||||||
|
uint16_t vid,
|
||||||
|
uint16_t state);
|
||||||
#else
|
#else
|
||||||
static inline QDF_STATUS
|
static inline QDF_STATUS
|
||||||
qal_bridge_fdb_register_notify(qal_notify_blk_t nb)
|
qal_bridge_fdb_register_notify(qal_notify_blk_t nb)
|
||||||
@@ -89,6 +96,15 @@ qal_bridge_fdb_update_unregister_notify(qal_notify_blk_t nb)
|
|||||||
{
|
{
|
||||||
return __qal_bridge_fdb_update_unregister_notify(nb);
|
return __qal_bridge_fdb_update_unregister_notify(nb);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QDF_STATUS
|
||||||
|
qal_bridge_fdb_add_or_refresh_by_netdev(qal_netdev_t dev,
|
||||||
|
const unsigned char *addr,
|
||||||
|
uint16_t vid,
|
||||||
|
uint16_t state)
|
||||||
|
{
|
||||||
|
__qal_bridge_fdb_add_or_refresh_by_netdev(dev, addr, vid, state);
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* __QAL_BRIDGE_H */
|
#endif /* __QAL_BRIDGE_H */
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2021 The Linux Foundation. All rights reserved.
|
* Copyright (c) 2021 The Linux Foundation. All rights reserved.
|
||||||
|
* Copyright (c) 2023 Qualcomm Innovation Center, Inc. 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
|
||||||
@@ -87,4 +88,26 @@ __qal_bridge_fdb_update_unregister_notify(__qal_notify_blk_t nb)
|
|||||||
return QDF_STATUS_SUCCESS;
|
return QDF_STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 1, 0)
|
||||||
|
static inline QDF_STATUS
|
||||||
|
__qal_bridge_fdb_add_or_refresh_by_netdev(__qal_netdev_t dev,
|
||||||
|
const unsigned char *addr,
|
||||||
|
uint16_t vid,
|
||||||
|
uint16_t state)
|
||||||
|
{
|
||||||
|
int ret;
|
||||||
|
|
||||||
|
ret = br_fdb_add_or_refresh_by_netdev(dev, addr, vid, state);
|
||||||
|
return qdf_status_from_os_return(ret);
|
||||||
|
}
|
||||||
|
#else
|
||||||
|
static inline QDF_STATUS
|
||||||
|
__qal_bridge_fdb_add_or_refresh_by_netdev(__qal_netdev_t dev,
|
||||||
|
const unsigned char *addr,
|
||||||
|
uint16_t vid,
|
||||||
|
uint16_t state)
|
||||||
|
{
|
||||||
|
return QDF_STATUS_SUCCESS;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
#endif /* __I_QAL_BRIDGE_H */
|
#endif /* __I_QAL_BRIDGE_H */
|
||||||
|
Reference in New Issue
Block a user