ring: free rings when detaching device
authorMauricio Vasquez B <mauricio.vasquezbernal@studenti.polito.it>
Mon, 7 Mar 2016 16:20:31 +0000 (17:20 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 16 Mar 2016 18:05:47 +0000 (19:05 +0100)
commita74a99bbb8edeab46d85abb0ee22ce4450136fc8
treec505eb0586fd205dd459b1127555708f11147d82
parent6a79f045ceaf0a7c81c5dade96a5eef07a4f5fa7
ring: free rings when detaching device

When a device is created with "CREATE" as action, new rings are
allocated for it, then it is a good practice to free them when the
rte_ethdev_dettach method is invoked by the application.

Rings are not freeded when "ATTACH" is used or when the device is
created by means of the rte_eth_from_rings function.

Signed-off-by: Mauricio Vasquez B <mauricio.vasquezbernal@studenti.polito.it>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
drivers/net/ring/rte_eth_ring.c