net: veth: Page pool creation error handling for existing pools only
authorLiang Chen <liangchen.linux@gmail.com>
Sat, 12 Aug 2023 02:30:16 +0000 (10:30 +0800)
committerJakub Kicinski <kuba@kernel.org>
Tue, 15 Aug 2023 02:26:19 +0000 (19:26 -0700)
commit8a519a572598b7c0c07b02f69bf5b4e8dd4b2d7d
tree8f6bc1dc580d992587176767a551f0cb88fbbcb5
parentf6f978fc4d006c9d3fa6df9f172d4660139fd3dd
net: veth: Page pool creation error handling for existing pools only

The failure handling procedure destroys page pools for all queues,
including those that haven't had their page pool created yet. this patch
introduces necessary adjustments to prevent potential risks and
inconsistency with the error handling behavior.

Fixes: 0ebab78cbcbf ("net: veth: add page_pool for page recycling")
Acked-by: Jesper Dangaard Brouer <hawk@kernel.org>
Signed-off-by: Liang Chen <liangchen.linux@gmail.com>
Link: https://lore.kernel.org/r/20230812023016.10553-1-liangchen.linux@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/veth.c