Merge branch 'qed-rdma-fixes'
Michal Kalderon says: ==================== qed*: Rdma fixes This patch series include two fixes for bugs related to rdma. The first has to do with loading the driver over an iWARP device. The second fixes a previous commit that added proper link indication for iWARP / RoCE. ==================== Signed-off-by: Michal Kalderon <Michal.Kalderon@cavium.com> Signed-off-by: Sudarsana Kalluru <Sudarsana.Kalluru@cavium.com>
This commit is contained in:
commit
3ff519e6c9
|
@ -115,8 +115,7 @@ int qed_l2_alloc(struct qed_hwfn *p_hwfn)
|
||||||
|
|
||||||
void qed_l2_setup(struct qed_hwfn *p_hwfn)
|
void qed_l2_setup(struct qed_hwfn *p_hwfn)
|
||||||
{
|
{
|
||||||
if (p_hwfn->hw_info.personality != QED_PCI_ETH &&
|
if (!QED_IS_L2_PERSONALITY(p_hwfn))
|
||||||
p_hwfn->hw_info.personality != QED_PCI_ETH_ROCE)
|
|
||||||
return;
|
return;
|
||||||
|
|
||||||
mutex_init(&p_hwfn->p_l2_info->lock);
|
mutex_init(&p_hwfn->p_l2_info->lock);
|
||||||
|
@ -126,8 +125,7 @@ void qed_l2_free(struct qed_hwfn *p_hwfn)
|
||||||
{
|
{
|
||||||
u32 i;
|
u32 i;
|
||||||
|
|
||||||
if (p_hwfn->hw_info.personality != QED_PCI_ETH &&
|
if (!QED_IS_L2_PERSONALITY(p_hwfn))
|
||||||
p_hwfn->hw_info.personality != QED_PCI_ETH_ROCE)
|
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (!p_hwfn->p_l2_info)
|
if (!p_hwfn->p_l2_info)
|
||||||
|
|
|
@ -238,7 +238,7 @@ qede_rdma_get_free_event_node(struct qede_dev *edev)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!found) {
|
if (!found) {
|
||||||
event_node = kzalloc(sizeof(*event_node), GFP_KERNEL);
|
event_node = kzalloc(sizeof(*event_node), GFP_ATOMIC);
|
||||||
if (!event_node) {
|
if (!event_node) {
|
||||||
DP_NOTICE(edev,
|
DP_NOTICE(edev,
|
||||||
"qedr: Could not allocate memory for rdma work\n");
|
"qedr: Could not allocate memory for rdma work\n");
|
||||||
|
|
Loading…
Reference in New Issue