* [Intel-wired-lan] [next PATCH v2 1/2] i40evf: fix overlong BIT defines
[not found] <1442455270-6681-1-git-send-email-jesse.brandeburg@intel.com>
@ 2015-10-02 6:12 ` Jesse Brandeburg
2015-10-02 6:13 ` Jesse Brandeburg
2015-10-05 18:51 ` Bowers, AndrewX
0 siblings, 2 replies; 4+ messages in thread
From: Jesse Brandeburg @ 2015-10-02 6:12 UTC (permalink / raw)
To: intel-wired-lan
The defines from the RSS enabling call were mistakenly
missed in the patches to the i40e which should have been
to i40evf as well.
this is a follow up to (commit ed921559886dd40528) "fix
32 bit build warnings".
Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
---
drivers/net/ethernet/intel/i40evf/i40e_common.c | 5 -----
drivers/net/ethernet/intel/i40evf/i40e_txrx.h | 14 +++++++-------
2 files changed, 7 insertions(+), 12 deletions(-)
diff --git a/drivers/net/ethernet/intel/i40evf/i40e_common.c b/drivers/net/ethernet/intel/i40evf/i40e_common.c
index b98b642..a98a31f 100644
--- a/drivers/net/ethernet/intel/i40evf/i40e_common.c
+++ b/drivers/net/ethernet/intel/i40evf/i40e_common.c
@@ -443,9 +443,6 @@ static i40e_status i40e_aq_get_set_rss_lut(struct i40e_hw *hw,
I40E_AQC_SET_RSS_LUT_TABLE_TYPE_SHIFT) &
I40E_AQC_SET_RSS_LUT_TABLE_TYPE_MASK));
- cmd_resp->addr_high = cpu_to_le32(high_16_bits((u64)lut));
- cmd_resp->addr_low = cpu_to_le32(lower_32_bits((u64)lut));
-
status = i40evf_asq_send_command(hw, &desc, lut, lut_size, NULL);
return status;
@@ -520,8 +517,6 @@ static i40e_status i40e_aq_get_set_rss_key(struct i40e_hw *hw,
I40E_AQC_SET_RSS_KEY_VSI_ID_SHIFT) &
I40E_AQC_SET_RSS_KEY_VSI_ID_MASK));
cmd_resp->vsi_id |= cpu_to_le16((u16)I40E_AQC_SET_RSS_KEY_VSI_VALID);
- cmd_resp->addr_high = cpu_to_le32(high_16_bits((u64)key));
- cmd_resp->addr_low = cpu_to_le32(lower_32_bits((u64)key));
status = i40evf_asq_send_command(hw, &desc, key, key_size, NULL);
diff --git a/drivers/net/ethernet/intel/i40evf/i40e_txrx.h b/drivers/net/ethernet/intel/i40evf/i40e_txrx.h
index 26fc85f..e8185c0 100644
--- a/drivers/net/ethernet/intel/i40evf/i40e_txrx.h
+++ b/drivers/net/ethernet/intel/i40evf/i40e_txrx.h
@@ -79,16 +79,16 @@ enum i40e_dyn_idx_t {
BIT_ULL(I40E_FILTER_PCTYPE_L2_PAYLOAD))
#define I40E_DEFAULT_RSS_HENA_EXPANDED (I40E_DEFAULT_RSS_HENA | \
- BIT(I40E_FILTER_PCTYPE_NONF_IPV4_TCP_SYN_NO_ACK) | \
- BIT(I40E_FILTER_PCTYPE_NONF_UNICAST_IPV4_UDP) | \
- BIT(I40E_FILTER_PCTYPE_NONF_MULTICAST_IPV4_UDP) | \
- BIT(I40E_FILTER_PCTYPE_NONF_IPV6_TCP_SYN_NO_ACK) | \
- BIT(I40E_FILTER_PCTYPE_NONF_UNICAST_IPV6_UDP) | \
- BIT(I40E_FILTER_PCTYPE_NONF_MULTICAST_IPV6_UDP))
+ BIT_ULL(I40E_FILTER_PCTYPE_NONF_IPV4_TCP_SYN_NO_ACK) | \
+ BIT_ULL(I40E_FILTER_PCTYPE_NONF_UNICAST_IPV4_UDP) | \
+ BIT_ULL(I40E_FILTER_PCTYPE_NONF_MULTICAST_IPV4_UDP) | \
+ BIT_ULL(I40E_FILTER_PCTYPE_NONF_IPV6_TCP_SYN_NO_ACK) | \
+ BIT_ULL(I40E_FILTER_PCTYPE_NONF_UNICAST_IPV6_UDP) | \
+ BIT_ULL(I40E_FILTER_PCTYPE_NONF_MULTICAST_IPV6_UDP))
#define i40e_pf_get_default_rss_hena(pf) \
(((pf)->flags & I40E_FLAG_MULTIPLE_TCP_UDP_RSS_PCTYPE) ? \
- I40E_DEFAULT_RSS_HENA_EXPANDED : I40E_DEFAULT_RSS_HENA)
+ I40E_DEFAULT_RSS_HENA_EXPANDED : I40E_DEFAULT_RSS_HENA)
/* Supported Rx Buffer Sizes */
#define I40E_RXBUFFER_512 512 /* Used for packet split */
--
2.1.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [Intel-wired-lan] [next PATCH v2 1/2] i40evf: fix overlong BIT defines
2015-10-02 6:12 ` [Intel-wired-lan] [next PATCH v2 1/2] i40evf: fix overlong BIT defines Jesse Brandeburg
@ 2015-10-02 6:13 ` Jesse Brandeburg
2015-10-05 18:51 ` Bowers, AndrewX
1 sibling, 0 replies; 4+ messages in thread
From: Jesse Brandeburg @ 2015-10-02 6:13 UTC (permalink / raw)
To: intel-wired-lan
Compiler complained of an unused variable, which the driver was just
using to store the result of a rd32 which is used to clear a register
unconditionally. Just drop the unused variable and re-use one.
Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
---
drivers/net/ethernet/intel/i40evf/i40evf_main.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/drivers/net/ethernet/intel/i40evf/i40evf_main.c b/drivers/net/ethernet/intel/i40evf/i40evf_main.c
index 429a46c..eb9a32b 100644
--- a/drivers/net/ethernet/intel/i40evf/i40evf_main.c
+++ b/drivers/net/ethernet/intel/i40evf/i40evf_main.c
@@ -305,12 +305,10 @@ static irqreturn_t i40evf_msix_aq(int irq, void *data)
struct i40evf_adapter *adapter = netdev_priv(netdev);
struct i40e_hw *hw = &adapter->hw;
u32 val;
- u32 ena_mask;
- /* handle non-queue interrupts */
+ /* handle non-queue interrupts, these reads clear the registers */
val = rd32(hw, I40E_VFINT_ICR01);
- ena_mask = rd32(hw, I40E_VFINT_ICR0_ENA1);
-
+ val = rd32(hw, I40E_VFINT_ICR0_ENA1);
val = rd32(hw, I40E_VFINT_DYN_CTL01);
val = val | I40E_VFINT_DYN_CTL01_CLEARPBA_MASK;
--
2.1.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [Intel-wired-lan] [next PATCH v2 1/2] i40evf: fix overlong BIT defines
2015-10-02 6:12 ` [Intel-wired-lan] [next PATCH v2 1/2] i40evf: fix overlong BIT defines Jesse Brandeburg
2015-10-02 6:13 ` Jesse Brandeburg
@ 2015-10-05 18:51 ` Bowers, AndrewX
2015-10-13 20:50 ` Jesse Brandeburg
1 sibling, 1 reply; 4+ messages in thread
From: Bowers, AndrewX @ 2015-10-05 18:51 UTC (permalink / raw)
To: intel-wired-lan
> -----Original Message-----
> From: Intel-wired-lan [mailto:intel-wired-lan-bounces at lists.osuosl.org] On
> Behalf Of Jesse Brandeburg
> Sent: Wednesday, September 16, 2015 7:01 PM
> To: e1000-patches at isotope.jf.intel.com
> Subject: [Intel-wired-lan] [next PATCH v2 1/2] i40evf: fix overlong BIT defines
>
> The defines from the RSS enabling call were mistakenly missed in the patches
> to the i40e which should have been to i40evf as well.
>
> this is a follow up to (commit ed921559886dd40528) "fix
> 32 bit build warnings".
>
> Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
> ---
> drivers/net/ethernet/intel/i40evf/i40e_common.c | 5 -----
> drivers/net/ethernet/intel/i40evf/i40e_txrx.h | 14 +++++++-------
> 2 files changed, 7 insertions(+), 12 deletions(-)
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Patch code changes correctly applied
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Intel-wired-lan] [next PATCH v2 1/2] i40evf: fix overlong BIT defines
2015-10-05 18:51 ` Bowers, AndrewX
@ 2015-10-13 20:50 ` Jesse Brandeburg
0 siblings, 0 replies; 4+ messages in thread
From: Jesse Brandeburg @ 2015-10-13 20:50 UTC (permalink / raw)
To: intel-wired-lan
On Mon, 5 Oct 2015 18:51:57 +0000
"Bowers, AndrewX" <andrewx.bowers@intel.com> wrote:
> > -----Original Message-----
> > From: Intel-wired-lan [mailto:intel-wired-lan-bounces at lists.osuosl.org] On
> > Behalf Of Jesse Brandeburg
> > Sent: Wednesday, September 16, 2015 7:01 PM
> > To: e1000-patches at isotope.jf.intel.com
> > Subject: [Intel-wired-lan] [next PATCH v2 1/2] i40evf: fix overlong BIT defines
> >
> > The defines from the RSS enabling call were mistakenly missed in the patches
> > to the i40e which should have been to i40evf as well.
> >
> > this is a follow up to (commit ed921559886dd40528) "fix
> > 32 bit build warnings".
> >
> > Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Cc: stable at vger.kernel.org
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-10-13 20:50 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <1442455270-6681-1-git-send-email-jesse.brandeburg@intel.com>
2015-10-02 6:12 ` [Intel-wired-lan] [next PATCH v2 1/2] i40evf: fix overlong BIT defines Jesse Brandeburg
2015-10-02 6:13 ` Jesse Brandeburg
2015-10-05 18:51 ` Bowers, AndrewX
2015-10-13 20:50 ` Jesse Brandeburg
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.