[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20111206.004629.1477080329086805790.davem@davemloft.net>
Date: Tue, 06 Dec 2011 00:46:29 -0500 (EST)
From: David Miller <davem@...emloft.net>
To: mchan@...adcom.com
Cc: netdev@...r.kernel.org, barak@...adcom.com, eilong@...adcom.com
Subject: Re: [PATCH net-next 3/4] bnx2x: support classification config query
From: "Michael Chan" <mchan@...adcom.com>
Date: Mon, 5 Dec 2011 21:44:47 -0800
> + /* traverse list */
> + list_for_each_entry(pos, &o->head, link)
> + {
Put openning "{" at end of list_for_each_entry(), rather than
on a new line.
> + if ((counter < n)) {
Excessive parenthesis, remove.
> + memcpy(next + MAC_LEADING_ZERO_CNT,
> + pos->u.mac.mac, ETH_ALEN);
Paremeters on subsequent lines don't line up properly.
> + next = buf + counter * ALIGN(ETH_ALEN,
> + sizeof(u32));
Likewise.
> + DP(BNX2X_MSG_SP, "copied element number "
> + "%d to address %p element was "
> + "%pM\n", counter, next, pos->u.mac.mac);
Likewise.
> + int (*get_n_elements)(struct bnx2x *bp,
> + struct bnx2x_vlan_mac_obj *o,
> + int n,
> + u8 *buf);
> +
Likewise.
Sigh.
Definitely a new-comer wrote this code, but I know more experienced hands
reviewed it, therefore I am disappointed.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists