struct sfc_dp_rx {
struct sfc_dp dp;
+ unsigned int features;
+#define SFC_DP_RX_FEAT_SCATTER 0x1
sfc_dp_rx_qcreate_t *qcreate;
sfc_dp_rx_qdestroy_t *qdestroy;
sfc_dp_rx_qstart_t *qstart;
.type = SFC_DP_RX,
.hw_fw_caps = 0,
},
+ .features = SFC_DP_RX_FEAT_SCATTER,
.qcreate = sfc_efx_rx_qcreate,
.qdestroy = sfc_efx_rx_qdestroy,
.qstart = sfc_efx_rx_qstart,
rxmode->hw_strip_crc = 1;
}
+ if (rxmode->enable_scatter &&
+ (~sa->dp_rx->features & SFC_DP_RX_FEAT_SCATTER)) {
+ sfc_err(sa, "Rx scatter not supported by %s datapath",
+ sa->dp_rx->dp.name);
+ rc = EINVAL;
+ }
+
if (rxmode->enable_lro) {
sfc_err(sa, "LRO not supported");
rc = EINVAL;