diff mbox series

[ovs-dev,1/4] pinctrl: Use correct map size in pinctrl_handle_put_fdb().

Message ID 20241101132927.81337-2-dceara@redhat.com
State Accepted
Headers show
Series controller: FDB/MAC_Binding learning/aging fixes. | expand

Checks

Context Check Description
ovsrobot/apply-robot success apply and check: success
ovsrobot/github-robot-_Build_and_Test success github build: passed
ovsrobot/github-robot-_ovn-kubernetes fail github build: failed

Commit Message

Dumitru Ceara Nov. 1, 2024, 1:29 p.m. UTC
Fixes: fb96ae36793a ("controller: Merge the mac-cache and mac-learn.")
Signed-off-by: Dumitru Ceara <dceara@redhat.com>
---
 controller/pinctrl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Mark Michelson Nov. 1, 2024, 5:43 p.m. UTC | #1
Acked-by: Mark Michelson <mmichels@redhat.com>

On 11/1/24 09:29, Dumitru Ceara wrote:
> Fixes: fb96ae36793a ("controller: Merge the mac-cache and mac-learn.")
> Signed-off-by: Dumitru Ceara <dceara@redhat.com>
> ---
>   controller/pinctrl.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/controller/pinctrl.c b/controller/pinctrl.c
> index b891435c12..dfb3130aa2 100644
> --- a/controller/pinctrl.c
> +++ b/controller/pinctrl.c
> @@ -8981,7 +8981,7 @@ static void
>   pinctrl_handle_put_fdb(const struct flow *md, const struct flow *headers)
>                          OVS_REQUIRES(pinctrl_mutex)
>   {
> -    if (hmap_count(&put_mac_bindings) >= MAX_FDB_ENTRIES) {
> +    if (hmap_count(&put_fdbs) >= MAX_FDB_ENTRIES) {
>           COVERAGE_INC(pinctrl_drop_put_mac_binding);
>           return;
>       }
diff mbox series

Patch

diff --git a/controller/pinctrl.c b/controller/pinctrl.c
index b891435c12..dfb3130aa2 100644
--- a/controller/pinctrl.c
+++ b/controller/pinctrl.c
@@ -8981,7 +8981,7 @@  static void
 pinctrl_handle_put_fdb(const struct flow *md, const struct flow *headers)
                        OVS_REQUIRES(pinctrl_mutex)
 {
-    if (hmap_count(&put_mac_bindings) >= MAX_FDB_ENTRIES) {
+    if (hmap_count(&put_fdbs) >= MAX_FDB_ENTRIES) {
         COVERAGE_INC(pinctrl_drop_put_mac_binding);
         return;
     }