* [PATCH] ixgbe: move tc variable to CONFIG_IXGBE_DCB
@ 2009-11-20 14:02 Jaswinder Singh Rajput
2009-11-20 14:24 ` Jeff Kirsher
0 siblings, 1 reply; 5+ messages in thread
From: Jaswinder Singh Rajput @ 2009-11-20 14:02 UTC (permalink / raw)
To: David Miller, Yi Zou, Peter P Waskiewicz Jr, Jeff Kirsher, netdev,
LKML
tc is required by CONFIG_IXGBE_DCB.
This also fixes compilation warning:
drivers/net/ixgbe/ixgbe_main.c: In function ‘ixgbe_tx_is_paused’:
drivers/net/ixgbe/ixgbe_main.c:245: warning: unused variable ‘tc’
Signed-off-by: Jaswinder Singh Rajput <jaswinderrajput@gmail.com>
---
drivers/net/ixgbe/ixgbe_main.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/net/ixgbe/ixgbe_main.c b/drivers/net/ixgbe/ixgbe_main.c
index ebcec30..61a02ce 100644
--- a/drivers/net/ixgbe/ixgbe_main.c
+++ b/drivers/net/ixgbe/ixgbe_main.c
@@ -242,11 +242,11 @@ static void ixgbe_unmap_and_free_tx_resource(struct ixgbe_adapter *adapter,
static inline bool ixgbe_tx_is_paused(struct ixgbe_adapter *adapter,
struct ixgbe_ring *tx_ring)
{
- int tc;
u32 txoff = IXGBE_TFCS_TXOFF;
#ifdef CONFIG_IXGBE_DCB
if (adapter->flags & IXGBE_FLAG_DCB_ENABLED) {
+ int tc;
int reg_idx = tx_ring->reg_idx;
int dcb_i = adapter->ring_feature[RING_F_DCB].indices;
--
1.6.5.3
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] ixgbe: move tc variable to CONFIG_IXGBE_DCB
2009-11-20 14:02 [PATCH] ixgbe: move tc variable to CONFIG_IXGBE_DCB Jaswinder Singh Rajput
@ 2009-11-20 14:24 ` Jeff Kirsher
2009-11-20 19:13 ` David Miller
0 siblings, 1 reply; 5+ messages in thread
From: Jeff Kirsher @ 2009-11-20 14:24 UTC (permalink / raw)
To: Jaswinder Singh Rajput
Cc: David Miller, Yi Zou, Peter P Waskiewicz Jr, netdev, LKML
On Fri, Nov 20, 2009 at 06:02, Jaswinder Singh Rajput
<jaswinder@kernel.org> wrote:
>
> tc is required by CONFIG_IXGBE_DCB.
> This also fixes compilation warning:
>
> drivers/net/ixgbe/ixgbe_main.c: In function ‘ixgbe_tx_is_paused’:
> drivers/net/ixgbe/ixgbe_main.c:245: warning: unused variable ‘tc’
>
> Signed-off-by: Jaswinder Singh Rajput <jaswinderrajput@gmail.com>
> ---
> drivers/net/ixgbe/ixgbe_main.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/net/ixgbe/ixgbe_main.c b/drivers/net/ixgbe/ixgbe_main.c
> index ebcec30..61a02ce 100644
> --- a/drivers/net/ixgbe/ixgbe_main.c
> +++ b/drivers/net/ixgbe/ixgbe_main.c
> @@ -242,11 +242,11 @@ static void ixgbe_unmap_and_free_tx_resource(struct ixgbe_adapter *adapter,
> static inline bool ixgbe_tx_is_paused(struct ixgbe_adapter *adapter,
> struct ixgbe_ring *tx_ring)
> {
> - int tc;
> u32 txoff = IXGBE_TFCS_TXOFF;
>
> #ifdef CONFIG_IXGBE_DCB
> if (adapter->flags & IXGBE_FLAG_DCB_ENABLED) {
> + int tc;
> int reg_idx = tx_ring->reg_idx;
> int dcb_i = adapter->ring_feature[RING_F_DCB].indices;
>
> --
> 1.6.5.3
>
>
> --
I just submitted a patch to fix this. So NAK.
--
Cheers,
Jeff
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] ixgbe: move tc variable to CONFIG_IXGBE_DCB
2009-11-20 14:24 ` Jeff Kirsher
@ 2009-11-20 19:13 ` David Miller
2009-11-20 19:16 ` Jeff Kirsher
0 siblings, 1 reply; 5+ messages in thread
From: David Miller @ 2009-11-20 19:13 UTC (permalink / raw)
To: jeffrey.t.kirsher
Cc: jaswinder, yi.zou, peter.p.waskiewicz.jr, netdev, linux-kernel
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: Text/Plain; charset=utf-8, Size: 803 bytes --]
From: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Date: Fri, 20 Nov 2009 06:24:21 -0800
> On Fri, Nov 20, 2009 at 06:02, Jaswinder Singh Rajput
> <jaswinder@kernel.org> wrote:
>>
>> tc is required by CONFIG_IXGBE_DCB.
>> This also fixes compilation warning:
>>
>> Â drivers/net/ixgbe/ixgbe_main.c: In function âixgbe_tx_is_pausedâ:
>> Â drivers/net/ixgbe/ixgbe_main.c:245: warning: unused variable âtcâ
>>
>> Signed-off-by: Jaswinder Singh Rajput <jaswinderrajput@gmail.com>
...
> I just submitted a patch to fix this. So NAK.
But his is much cleaner that your's, less ifdefs. I think we
should therefore use Jasdinder's version.
ÿôèº{.nÇ+·®+%Ëÿ±éݶ\x17¥wÿº{.nÇ+·¥{±þG«éÿ{ayº\x1dÊÚë,j\a¢f£¢·hïêÿêçz_è®\x03(éÝ¢j"ú\x1a¶^[m§ÿÿ¾\a«þG«éÿ¢¸?¨èÚ&£ø§~á¶iOæ¬z·vØ^\x14\x04\x1a¶^[m§ÿÿÃ\fÿ¶ìÿ¢¸?I¥
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] ixgbe: move tc variable to CONFIG_IXGBE_DCB
2009-11-20 19:13 ` David Miller
@ 2009-11-20 19:16 ` Jeff Kirsher
2009-11-20 21:47 ` David Miller
0 siblings, 1 reply; 5+ messages in thread
From: Jeff Kirsher @ 2009-11-20 19:16 UTC (permalink / raw)
To: David Miller
Cc: jaswinder, yi.zou, peter.p.waskiewicz.jr, netdev, linux-kernel
On Fri, Nov 20, 2009 at 11:13, David Miller <davem@davemloft.net> wrote:
> From: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
> Date: Fri, 20 Nov 2009 06:24:21 -0800
>
>> On Fri, Nov 20, 2009 at 06:02, Jaswinder Singh Rajput
>> <jaswinder@kernel.org> wrote:
>>>
>>> tc is required by CONFIG_IXGBE_DCB.
>>> This also fixes compilation warning:
>>>
>>> drivers/net/ixgbe/ixgbe_main.c: In function ‘ixgbe_tx_is_paused’:
>>> drivers/net/ixgbe/ixgbe_main.c:245: warning: unused variable ‘tc’
>>>
>>> Signed-off-by: Jaswinder Singh Rajput <jaswinderrajput@gmail.com>
> ...
>> I just submitted a patch to fix this. So NAK.
>
> But his is much cleaner that your's, less ifdefs. I think we
> should therefore use Jasdinder's version.
>
>
:) That is fine. The end result is the same.
Acked-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
--
Cheers,
Jeff
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] ixgbe: move tc variable to CONFIG_IXGBE_DCB
2009-11-20 19:16 ` Jeff Kirsher
@ 2009-11-20 21:47 ` David Miller
0 siblings, 0 replies; 5+ messages in thread
From: David Miller @ 2009-11-20 21:47 UTC (permalink / raw)
To: jeffrey.t.kirsher
Cc: jaswinder, yi.zou, peter.p.waskiewicz.jr, netdev, linux-kernel
From: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Date: Fri, 20 Nov 2009 11:16:54 -0800
> :) That is fine. The end result is the same.
>
> Acked-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Great, applied.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2009-11-20 21:47 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-20 14:02 [PATCH] ixgbe: move tc variable to CONFIG_IXGBE_DCB Jaswinder Singh Rajput
2009-11-20 14:24 ` Jeff Kirsher
2009-11-20 19:13 ` David Miller
2009-11-20 19:16 ` Jeff Kirsher
2009-11-20 21:47 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox