diff options
| author | Rahul Verma <Rahul.Verma@cavium.com> | 2017-07-26 09:07:14 -0400 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2017-07-27 03:05:22 -0400 |
| commit | bf5a94bfe26a9fcd4af91ae6bccd4f3d600d2262 (patch) | |
| tree | 10444bba0c94198edc3ffd48125b30ceec0d5fd0 /include/linux/qed | |
| parent | 477f2d1460a636abd08f03eafabe0c51366fa5de (diff) | |
qed: Read per queue coalesce from hardware
Retrieve the actual coalesce value from hardware for every Rx/Tx
queue, instead of Rx/Tx coalesce value cached during set coalesce.
Signed-off-by: Rahul Verma <Rahul.Verma@cavium.com>
Signed-off-by: Yuval Mintz <yuval.mintz@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/qed')
| -rw-r--r-- | include/linux/qed/qed_eth_if.h | 1 | ||||
| -rw-r--r-- | include/linux/qed/qed_if.h | 11 |
2 files changed, 2 insertions, 10 deletions
diff --git a/include/linux/qed/qed_eth_if.h b/include/linux/qed/qed_eth_if.h index 0eef0a2b1901..d60de4a39810 100644 --- a/include/linux/qed/qed_eth_if.h +++ b/include/linux/qed/qed_eth_if.h | |||
| @@ -323,6 +323,7 @@ struct qed_eth_ops { | |||
| 323 | 323 | ||
| 324 | int (*configure_arfs_searcher)(struct qed_dev *cdev, | 324 | int (*configure_arfs_searcher)(struct qed_dev *cdev, |
| 325 | bool en_searcher); | 325 | bool en_searcher); |
| 326 | int (*get_coalesce)(struct qed_dev *cdev, u16 *coal, void *handle); | ||
| 326 | }; | 327 | }; |
| 327 | 328 | ||
| 328 | const struct qed_eth_ops *qed_get_eth_ops(void); | 329 | const struct qed_eth_ops *qed_get_eth_ops(void); |
diff --git a/include/linux/qed/qed_if.h b/include/linux/qed/qed_if.h index 4d59ca16134c..2b4720bb8b40 100644 --- a/include/linux/qed/qed_if.h +++ b/include/linux/qed/qed_if.h | |||
| @@ -186,6 +186,7 @@ enum qed_led_mode { | |||
| 186 | 186 | ||
| 187 | #define QED_COALESCE_MAX 0xFF | 187 | #define QED_COALESCE_MAX 0xFF |
| 188 | #define QED_DEFAULT_RX_USECS 12 | 188 | #define QED_DEFAULT_RX_USECS 12 |
| 189 | #define QED_DEFAULT_TX_USECS 48 | ||
| 189 | 190 | ||
| 190 | /* forward */ | 191 | /* forward */ |
| 191 | struct qed_dev; | 192 | struct qed_dev; |
| @@ -674,16 +675,6 @@ struct qed_common_ops { | |||
| 674 | enum qed_nvm_images type, u8 *buf, u16 len); | 675 | enum qed_nvm_images type, u8 *buf, u16 len); |
| 675 | 676 | ||
| 676 | /** | 677 | /** |
| 677 | * @brief get_coalesce - Get coalesce parameters in usec | ||
| 678 | * | ||
| 679 | * @param cdev | ||
| 680 | * @param rx_coal - Rx coalesce value in usec | ||
| 681 | * @param tx_coal - Tx coalesce value in usec | ||
| 682 | * | ||
| 683 | */ | ||
| 684 | void (*get_coalesce)(struct qed_dev *cdev, u16 *rx_coal, u16 *tx_coal); | ||
| 685 | |||
| 686 | /** | ||
| 687 | * @brief set_coalesce - Configure Rx coalesce value in usec | 678 | * @brief set_coalesce - Configure Rx coalesce value in usec |
| 688 | * | 679 | * |
| 689 | * @param cdev | 680 | * @param cdev |
