Thread (14 messages) 14 messages, 5 authors, 3d ago

Re: [PATCH 1/4] bnx2x: use kzalloc() to allocate mac filtering list

From: Przemek Kitszel <przemyslaw.kitszel@intel.com>
Date: 2026-07-02 13:50:36
Also in: intel-wired-lan, lkml

quoted hunk ↗ jump to hunk
@@ -2713,8 +2714,7 @@ static int bnx2x_mcast_enqueue_cmd(struct bnx2x *bp,
  				total_elems = BNX2X_MCAST_BINS_NUM;
  		}
  		while (total_elems > 0) {
-			elem_group = (struct bnx2x_mcast_elem_group *)
-				     __get_free_page(GFP_ATOMIC | __GFP_ZERO);
+			elem_group = kzalloc(PAGE_SIZE, GFP_ATOMIC);
what is the current rule of thumb for kzalloc vs kvzalloc size under
GFP_ATOMIC?
  			if (!elem_group) {
  				bnx2x_free_groups(&new_cmd->group_head);
  				kfree(new_cmd);
  
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help