On 11.06.16 08:50, David Miller wrote:
From: Ivan Khoronzhuk
Date: Tue, 7 Jun 2016 16:59:35 +0300
if (!cpsw_common_res_usage_state(priv)) {
+ int buf_num;
struct cpsw_priv *priv_sl0 = cpsw_get_slave_priv(priv, 0);
Please
On 11.06.16 08:50, David Miller wrote:
From: Ivan Khoronzhuk
Date: Tue, 7 Jun 2016 16:59:35 +0300
if (!cpsw_common_res_usage_state(priv)) {
+ int buf_num;
struct cpsw_priv *priv_sl0 = cpsw_get_slave_priv(priv, 0);
Please always order local variable
From: Ivan Khoronzhuk
Date: Tue, 7 Jun 2016 16:59:35 +0300
> if (!cpsw_common_res_usage_state(priv)) {
> + int buf_num;
> struct cpsw_priv *priv_sl0 = cpsw_get_slave_priv(priv, 0);
>
Please always order local variable declarations
From: Ivan Khoronzhuk
Date: Tue, 7 Jun 2016 16:59:35 +0300
> if (!cpsw_common_res_usage_state(priv)) {
> + int buf_num;
> struct cpsw_priv *priv_sl0 = cpsw_get_slave_priv(priv, 0);
>
Please always order local variable declarations from longest to shortest
There is no reason in rx_descs property because davinici_cpdma
driver splits pool of descriptors equally between tx and rx channels.
That is, if number of descriptors 256, 128 of them are for rx
channels. While receiving, the descriptor is freed to the pool and
then allocated with new skb. And if
There is no reason in rx_descs property because davinici_cpdma
driver splits pool of descriptors equally between tx and rx channels.
That is, if number of descriptors 256, 128 of them are for rx
channels. While receiving, the descriptor is freed to the pool and
then allocated with new skb. And if
6 matches
Mail list logo