|
@@ -125,6 +125,15 @@
|
|
|
*/
|
|
*/
|
|
|
#define NICPF_CLK_PER_INT_TICK 2
|
|
#define NICPF_CLK_PER_INT_TICK 2
|
|
|
|
|
|
|
|
|
|
+/* Time to wait before we decide that a SQ is stuck.
|
|
|
|
|
+ *
|
|
|
|
|
+ * Since both pkt rx and tx notifications are done with same CQ,
|
|
|
|
|
+ * when packets are being received at very high rate (eg: L2 forwarding)
|
|
|
|
|
+ * then freeing transmitted skbs will be delayed and watchdog
|
|
|
|
|
+ * will kick in, resetting interface. Hence keeping this value high.
|
|
|
|
|
+ */
|
|
|
|
|
+#define NICVF_TX_TIMEOUT (50 * HZ)
|
|
|
|
|
+
|
|
|
struct nicvf_cq_poll {
|
|
struct nicvf_cq_poll {
|
|
|
u8 cq_idx; /* Completion queue index */
|
|
u8 cq_idx; /* Completion queue index */
|
|
|
struct napi_struct napi;
|
|
struct napi_struct napi;
|