Skip to content

Commit 91fcb99

Browse files
committed
Merge branch 'sfc-siena-next'
Martin Habets says: ==================== sfc: Remove Siena bits from sfc.ko Last year we split off Siena into it's own driver under directory siena. This patch series removes the now unused Falcon and Siena code from sfc.ko. No functional changes are intended. ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
2 parents be92377 + 3771c87 commit 91fcb99

24 files changed

+42
-4020
lines changed

drivers/net/ethernet/sfc/ef10.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2209,7 +2209,7 @@ static int efx_ef10_tx_probe(struct efx_tx_queue *tx_queue)
22092209
/* low two bits of label are what we want for type */
22102210
BUILD_BUG_ON((EFX_TXQ_TYPE_OUTER_CSUM | EFX_TXQ_TYPE_INNER_CSUM) != 3);
22112211
tx_queue->type = tx_queue->label & 3;
2212-
return efx_nic_alloc_buffer(tx_queue->efx, &tx_queue->txd.buf,
2212+
return efx_nic_alloc_buffer(tx_queue->efx, &tx_queue->txd,
22132213
(tx_queue->ptr_mask + 1) *
22142214
sizeof(efx_qword_t),
22152215
GFP_KERNEL);
@@ -4267,8 +4267,6 @@ const struct efx_nic_type efx_hunt_a0_nic_type = {
42674267
.sriov_init = efx_ef10_sriov_init,
42684268
.sriov_fini = efx_ef10_sriov_fini,
42694269
.sriov_wanted = efx_ef10_sriov_wanted,
4270-
.sriov_reset = efx_ef10_sriov_reset,
4271-
.sriov_flr = efx_ef10_sriov_flr,
42724270
.sriov_set_vf_mac = efx_ef10_sriov_set_vf_mac,
42734271
.sriov_set_vf_vlan = efx_ef10_sriov_set_vf_vlan,
42744272
.sriov_set_vf_spoofchk = efx_ef10_sriov_set_vf_spoofchk,

drivers/net/ethernet/sfc/ef100_nic.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ int efx_ef100_init_datapath_caps(struct efx_nic *efx)
224224
static int ef100_ev_probe(struct efx_channel *channel)
225225
{
226226
/* Allocate an extra descriptor for the QMDA status completion entry */
227-
return efx_nic_alloc_buffer(channel->efx, &channel->eventq.buf,
227+
return efx_nic_alloc_buffer(channel->efx, &channel->eventq,
228228
(channel->eventq_mask + 2) *
229229
sizeof(efx_qword_t),
230230
GFP_KERNEL);

drivers/net/ethernet/sfc/ef100_tx.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
int ef100_tx_probe(struct efx_tx_queue *tx_queue)
2424
{
2525
/* Allocate an extra descriptor for the QMDA status completion entry */
26-
return efx_nic_alloc_buffer(tx_queue->efx, &tx_queue->txd.buf,
26+
return efx_nic_alloc_buffer(tx_queue->efx, &tx_queue->txd,
2727
(tx_queue->ptr_mask + 2) *
2828
sizeof(efx_oword_t),
2929
GFP_KERNEL);
@@ -101,8 +101,8 @@ static bool ef100_tx_can_tso(struct efx_tx_queue *tx_queue, struct sk_buff *skb)
101101

102102
static efx_oword_t *ef100_tx_desc(struct efx_tx_queue *tx_queue, unsigned int index)
103103
{
104-
if (likely(tx_queue->txd.buf.addr))
105-
return ((efx_oword_t *)tx_queue->txd.buf.addr) + index;
104+
if (likely(tx_queue->txd.addr))
105+
return ((efx_oword_t *)tx_queue->txd.addr) + index;
106106
else
107107
return NULL;
108108
}

drivers/net/ethernet/sfc/ef10_sriov.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,7 @@ static inline bool efx_ef10_sriov_wanted(struct efx_nic *efx)
3535

3636
int efx_ef10_sriov_configure(struct efx_nic *efx, int num_vfs);
3737
int efx_ef10_sriov_init(struct efx_nic *efx);
38-
static inline void efx_ef10_sriov_reset(struct efx_nic *efx) {}
3938
void efx_ef10_sriov_fini(struct efx_nic *efx);
40-
static inline void efx_ef10_sriov_flr(struct efx_nic *efx, unsigned vf_i) {}
4139

4240
int efx_ef10_sriov_set_vf_mac(struct efx_nic *efx, int vf, const u8 *mac);
4341

drivers/net/ethernet/sfc/efx.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -605,7 +605,6 @@ static const struct net_device_ops efx_netdev_ops = {
605605
#endif
606606
.ndo_get_phys_port_id = efx_get_phys_port_id,
607607
.ndo_get_phys_port_name = efx_get_phys_port_name,
608-
.ndo_setup_tc = efx_setup_tc,
609608
#ifdef CONFIG_RFS_ACCEL
610609
.ndo_rx_flow_steer = efx_filter_rfs,
611610
#endif

drivers/net/ethernet/sfc/efx.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ static inline netdev_tx_t efx_enqueue_skb(struct efx_tx_queue *tx_queue, struct
3030
tx_queue, skb);
3131
}
3232
void efx_xmit_done_single(struct efx_tx_queue *tx_queue);
33-
int efx_setup_tc(struct net_device *net_dev, enum tc_setup_type type,
34-
void *type_data);
3533
extern unsigned int efx_piobuf_size;
3634

3735
/* RX */

drivers/net/ethernet/sfc/efx_channels.c

Lines changed: 1 addition & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -713,9 +713,6 @@ int efx_probe_channels(struct efx_nic *efx)
713713
struct efx_channel *channel;
714714
int rc;
715715

716-
/* Restart special buffer allocation */
717-
efx->next_buffer_table = 0;
718-
719716
/* Probe channels in reverse, so that any 'extra' channels
720717
* use the start of the buffer table. This allows the traffic
721718
* channels to be resized without moving them or wasting the
@@ -849,36 +846,14 @@ int efx_realloc_channels(struct efx_nic *efx, u32 rxq_entries, u32 txq_entries)
849846
struct efx_channel *other_channel[EFX_MAX_CHANNELS], *channel,
850847
*ptp_channel = efx_ptp_channel(efx);
851848
struct efx_ptp_data *ptp_data = efx->ptp_data;
852-
unsigned int i, next_buffer_table = 0;
853849
u32 old_rxq_entries, old_txq_entries;
850+
unsigned int i;
854851
int rc, rc2;
855852

856853
rc = efx_check_disabled(efx);
857854
if (rc)
858855
return rc;
859856

860-
/* Not all channels should be reallocated. We must avoid
861-
* reallocating their buffer table entries.
862-
*/
863-
efx_for_each_channel(channel, efx) {
864-
struct efx_rx_queue *rx_queue;
865-
struct efx_tx_queue *tx_queue;
866-
867-
if (channel->type->copy)
868-
continue;
869-
next_buffer_table = max(next_buffer_table,
870-
channel->eventq.index +
871-
channel->eventq.entries);
872-
efx_for_each_channel_rx_queue(rx_queue, channel)
873-
next_buffer_table = max(next_buffer_table,
874-
rx_queue->rxd.index +
875-
rx_queue->rxd.entries);
876-
efx_for_each_channel_tx_queue(tx_queue, channel)
877-
next_buffer_table = max(next_buffer_table,
878-
tx_queue->txd.index +
879-
tx_queue->txd.entries);
880-
}
881-
882857
efx_device_detach_sync(efx);
883858
efx_stop_all(efx);
884859
efx_soft_disable_interrupts(efx);
@@ -904,9 +879,6 @@ int efx_realloc_channels(struct efx_nic *efx, u32 rxq_entries, u32 txq_entries)
904879
for (i = 0; i < efx->n_channels; i++)
905880
swap(efx->channel[i], other_channel[i]);
906881

907-
/* Restart buffer table allocation */
908-
efx->next_buffer_table = next_buffer_table;
909-
910882
for (i = 0; i < efx->n_channels; i++) {
911883
channel = efx->channel[i];
912884
if (!channel->type->copy)

drivers/net/ethernet/sfc/efx_common.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,6 @@ MODULE_PARM_DESC(debug, "Bitmapped debugging message enable value");
3535

3636
/* This is the time (in jiffies) between invocations of the hardware
3737
* monitor.
38-
* On Falcon-based NICs, this will:
39-
* - Check the on-board hardware monitor;
40-
* - Poll the link state and reconfigure the hardware as necessary.
41-
* On Siena-based NICs for power systems with EEH support, this will give EEH a
42-
* chance to start.
4338
*/
4439
static unsigned int efx_monitor_interval = 1 * HZ;
4540

@@ -785,8 +780,6 @@ int efx_reset_up(struct efx_nic *efx, enum reset_type method, bool ok)
785780
mutex_unlock(&efx->rss_lock);
786781
efx->type->filter_table_restore(efx);
787782
up_write(&efx->filter_sem);
788-
if (efx->type->sriov_reset)
789-
efx->type->sriov_reset(efx);
790783

791784
mutex_unlock(&efx->mac_lock);
792785

0 commit comments

Comments
 (0)