)]}'
{
  "commit": "e5eba42f01340f73888dfe560be2806057c25913",
  "tree": "b80a6dc5f03a2b4c672f5d468eb3de2fd267c10c",
  "parents": [
    "ed6b5632e0acc247cf483da1ba40201258af46ff"
  ],
  "author": {
    "name": "Akiva Goldberger",
    "email": "agoldberger@nvidia.com",
    "time": "Sun Nov 09 11:49:03 2025 +0200"
  },
  "committer": {
    "name": "Paolo Abeni",
    "email": "pabeni@redhat.com",
    "time": "Tue Nov 11 15:12:18 2025 +0100"
  },
  "message": "mlx5: Fix default values in create CQ\n\nCurrently, CQs without a completion function are assigned the\nmlx5_add_cq_to_tasklet function by default. This is problematic since\nonly user CQs created through the mlx5_ib driver are intended to use\nthis function.\n\nAdditionally, all CQs that will use doorbells instead of polling for\ncompletions must call mlx5_cq_arm. However, the default CQ creation flow\nleaves a valid value in the CQ\u0027s arm_db field, allowing FW to send\ninterrupts to polling-only CQs in certain corner cases.\n\nThese two factors would allow a polling-only kernel CQ to be triggered\nby an EQ interrupt and call a completion function intended only for user\nCQs, causing a null pointer exception.\n\nSome areas in the driver have prevented this issue with one-off fixes\nbut did not address the root cause.\n\nThis patch fixes the described issue by adding defaults to the create CQ\nflow. It adds a default dummy completion function to protect against\nnull pointer exceptions, and it sets an invalid command sequence number\nby default in kernel CQs to prevent the FW from sending an interrupt to\nthe CQ until it is armed. User CQs are responsible for their own\ninitialization values.\n\nCallers of mlx5_core_create_cq are responsible for changing the\ncompletion function and arming the CQ per their needs.\n\nFixes: cdd04f4d4d71 (\"net/mlx5: Add support to create SQ and CQ for ASO\")\nSigned-off-by: Akiva Goldberger \u003cagoldberger@nvidia.com\u003e\nReviewed-by: Moshe Shemesh \u003cmoshe@nvidia.com\u003e\nSigned-off-by: Tariq Toukan \u003ctariqt@nvidia.com\u003e\nAcked-by: Leon Romanovsky \u003cleon@kernel.org\u003e\nLink: https://patch.msgid.link/1762681743-1084694-1-git-send-email-tariqt@nvidia.com\nSigned-off-by: Paolo Abeni \u003cpabeni@redhat.com\u003e\n\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "a23b364e24ffeb1bcfe983318c01f437cee023a1",
      "old_mode": 33188,
      "old_path": "drivers/infiniband/hw/mlx5/cq.c",
      "new_id": "651d76bca114d56501932dcd3bc42cdc51596cc1",
      "new_mode": 33188,
      "new_path": "drivers/infiniband/hw/mlx5/cq.c"
    },
    {
      "type": "modify",
      "old_id": "e9f319a9bdd6be4294068a22de746cadf999f141",
      "old_mode": 33188,
      "old_path": "drivers/net/ethernet/mellanox/mlx5/core/cq.c",
      "new_id": "60f7ab1d72e788bfd0b7ceb41226754c1a6e18d1",
      "new_mode": 33188,
      "new_path": "drivers/net/ethernet/mellanox/mlx5/core/cq.c"
    },
    {
      "type": "modify",
      "old_id": "6023bbbf3f39cc40b086aeb3c9f7ef1d751dbec1",
      "old_mode": 33188,
      "old_path": "drivers/net/ethernet/mellanox/mlx5/core/en_main.c",
      "new_id": "5e17eae81f4b3cb702f5d1a25f32e856ac773c43",
      "new_mode": 33188,
      "new_path": "drivers/net/ethernet/mellanox/mlx5/core/en_main.c"
    },
    {
      "type": "modify",
      "old_id": "cb1319974f83f94d18fde978ba0df6759ad4d6eb",
      "old_mode": 33188,
      "old_path": "drivers/net/ethernet/mellanox/mlx5/core/fpga/conn.c",
      "new_id": "ccef64fb40b6663a55d142b54b50ebf2eb706a3d",
      "new_mode": 33188,
      "new_path": "drivers/net/ethernet/mellanox/mlx5/core/fpga/conn.c"
    },
    {
      "type": "modify",
      "old_id": "24ef7d66fa8aa2c6aa298ee679f61d69a0e42de4",
      "old_mode": 33188,
      "old_path": "drivers/net/ethernet/mellanox/mlx5/core/steering/hws/send.c",
      "new_id": "7510c46e58a57074df325e252c665b9c4e67da32",
      "new_mode": 33188,
      "new_path": "drivers/net/ethernet/mellanox/mlx5/core/steering/hws/send.c"
    },
    {
      "type": "modify",
      "old_id": "077a77fde670ef0ccc80ea1776699b523ce7647d",
      "old_mode": 33188,
      "old_path": "drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_send.c",
      "new_id": "d034372fa04768e217570ccfb260008ca70e5403",
      "new_mode": 33188,
      "new_path": "drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_send.c"
    },
    {
      "type": "modify",
      "old_id": "82034efb74fc7cecb9fe378b430b6c1109f59d7e",
      "old_mode": 33188,
      "old_path": "drivers/vdpa/mlx5/net/mlx5_vnet.c",
      "new_id": "a7936bd1aabe17d6911f0ea2b22d727f5dd86dd4",
      "new_mode": 33188,
      "new_path": "drivers/vdpa/mlx5/net/mlx5_vnet.c"
    },
    {
      "type": "modify",
      "old_id": "7ef2c7c7d803ded6c52ab700304fc50e9c2a3ad5",
      "old_mode": 33188,
      "old_path": "include/linux/mlx5/cq.h",
      "new_id": "9d47cdc727ad0d1d83a30f6c2c043a45116255af",
      "new_mode": 33188,
      "new_path": "include/linux/mlx5/cq.h"
    }
  ]
}
