Commit f4176cd
committed
efa: Validate RQ depth relatively to max WR SGEs
EFA RQ max depth reported is the max descriptors a single RQ supports.
For RQ EFA support multiple SGEs which means a single recv WR consumes
multiple descriptors. This means that if the ULP requests more than 1
descriptor per recv WR, it can't use the max RQ depth reported. Validate
the requested RQ depth relatively to the supported max RQ depth with the
max SGEs requested.
Signed-off-by: Yonatan Nachum <ynachum@amazon.com>1 parent d2df166 commit f4176cd
1 file changed
Lines changed: 11 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1660 | 1660 | | |
1661 | 1661 | | |
1662 | 1662 | | |
| 1663 | + | |
| 1664 | + | |
| 1665 | + | |
| 1666 | + | |
| 1667 | + | |
1663 | 1668 | | |
1664 | 1669 | | |
1665 | 1670 | | |
| |||
1681 | 1686 | | |
1682 | 1687 | | |
1683 | 1688 | | |
1684 | | - | |
| 1689 | + | |
1685 | 1690 | | |
1686 | 1691 | | |
1687 | 1692 | | |
| |||
1831 | 1836 | | |
1832 | 1837 | | |
1833 | 1838 | | |
1834 | | - | |
| 1839 | + | |
1835 | 1840 | | |
1836 | 1841 | | |
1837 | 1842 | | |
| |||
1854 | 1859 | | |
1855 | 1860 | | |
1856 | 1861 | | |
1857 | | - | |
| 1862 | + | |
| 1863 | + | |
1858 | 1864 | | |
1859 | | - | |
1860 | | - | |
| 1865 | + | |
| 1866 | + | |
1861 | 1867 | | |
1862 | 1868 | | |
1863 | 1869 | | |
| |||
0 commit comments